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?
Asked
Active
Viewed 3.2k times
16
-
similar to https://stackoverflow.com/questions/15568700/best-java-server-implementation-for-socket-io but not flagging as duplicate as this specifically mentions Spring boot – Archimedes Trajano Jun 08 '20 at 22:38
1 Answers
17
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 (on open-source Java implementation) of Socket.IO together with Spring Boot.

Markus Weninger
- 11,931
- 7
- 64
- 137