Open meaku opened 11 years ago
We added the Server.use
function to define custom modules like socket.io.
That's the way we should implement it for the Client as well.
Is this finished? I think there are tests missing. It should also be chainable :wink:
It's done and chainable. Only the test are missing.
We are currently using the auto-detect feature of socket.io via
io.connect();
. This might cause problems if you are hosting the client at port 80 separately and the websocket-server at a different port.We should include the option to set a custom host and port.
Connecting socket.io this way:
io.connect('http://localhost:9191');