We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to configure a Sprint Boot REST app that uses port 8080 to also use SocketIOServer on port 8080.
if i use another port for SocketIOServer, it works fine.
if i use port 8080, i get a port in use error unless i set the following:
@Bean public SocketIOServer socketIOServer() { com.corundumstudio.socketio.Configuration config = new com.corundumstudio.socketio.Configuration(); config.setHostname(nwtNasaWebsocketServer); config.setPort(Integer.parseInt(nwtNasaWebsocketPortString)); SocketConfig sockConfig = new SocketConfig(); sockConfig.setReuseAddress(true); config.setSocketConfig(sockConfig); return new SocketIOServer(config); }
but then when i try to connect from the socket io client, i get a 404 for below call:
http://localhost:8080/socket-io/?EIO=3&transport=polling&t=NG2FwLh
I see similar issue opened previously #545 but no solution hint has been provided. Could someone please help here?
The text was updated successfully, but these errors were encountered:
Any solution for this issue? I want to run my REST endpoints and socketio server on same port
Sorry, something went wrong.
You may want to take a look at port unification in underlying netty server.
Thank you for the quick response. I will check that
Hello, has this issue been resolved
No branches or pull requests
I'm trying to configure a Sprint Boot REST app that uses port 8080 to also use SocketIOServer on port 8080.
if i use another port for SocketIOServer, it works fine.
if i use port 8080, i get a port in use error unless i set the following:
but then when i try to connect from the socket io client, i get a 404 for below call:
http://localhost:8080/socket-io/?EIO=3&transport=polling&t=NG2FwLh
I see similar issue opened previously #545 but no solution hint has been provided. Could someone please help here?
The text was updated successfully, but these errors were encountered: