netty-socketio
netty-socketio copied to clipboard
Unable to configure server path
@Leonya Trying to start server at path like localhost:8080/chat, javascript implementation contains feature like var io = require('socket.io')(8080, {path: "/swift"}) . How to do this with netty-socketio?
@robymus @ntrp
This works for me fine, I just set the path like this io({path: '/socket/socket.io/'}) and use a reverse proxy.
any update on this @mrniko ?
com.corundumstudio.socketio.Configuration has a setContext method, which changes the default path (eg. /socket.io). Have you tried using this?
import com.corundumstudio.socketio.Configuration
import com.corundumstudio.socketio.SocketIOServer
// ...
Configuration config = new Configuration();
config.setHostname("localhost");
config.setPort(8080);
config.setContext("/swift");
SocketIOServer server = new SocketIOServer(config);
This only changes the way how the handshake is done and the actual connection - sending message still has to be done on root path - which is not the behavior we want