peerigon / alamid

Framework for RESTful JavaScript web applications that run both on the server- and clientside.
http://www.alamidjs.com
MIT License
23 stars 3 forks source link

Client.use for custom instances (i.e. socket.io) #134

Open meaku opened 11 years ago

meaku commented 11 years ago

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');

meaku commented 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.

jhnns commented 11 years ago

Is this finished? I think there are tests missing. It should also be chainable :wink:

meaku commented 11 years ago

It's done and chainable. Only the test are missing.