Reputation: 169
I am gonna develop a real time game for andriod/ios and i need a server which transmit data with client real time. Can i use socket.io with Spring boot? Or if the answer is no , using websockets with Spring boot is the solution?
Upvotes: 16
Views: 40837
Reputation: 12648
The original Socket.IO server is designed to be used in Javascript, mostly Node.
Yet, there are other implementations of the Socket.IO server for other languages.
For Java, there is the Netty-socketio project, an open-source Java implementation of the Socket.IO server, based on the Netty Java server framework (the Netty-socketio project is also suggested in this answer).
This example Spring Boot application uses Netty-socketio to provide a Socket.IO server within a Spring Boot application.
So yes, you can use (an open-source Java implementation of) Socket.IO together with Spring Boot.
Upvotes: 18