Using socket.io-client. #3

Open
wants to merge 2 commits into
from

Conversation

Projects
None yet
1 participant
@polidore

hook.io bridge to websockets using socket.io-client. I had to use a
branch that is pending a pull request with learnboost, but hopefully
they will accept it soon, and this can be the standard.

requires that you do a local npm install of the 3rd/socket.io-client dir.

This branch does not implement a websocket. It just implements a
hook.io bridge to websockets using socket.io-client.  I had to use a
branch that is pending a pull request with learnboost, but hopefully
they will accept it soon, and this can be the standard.
@polidore

This comment has been minimized.

Show comment Hide comment
@polidore

polidore Dec 24, 2011

runs on newest node.

runs on newest node.

lib/ws.js
self.emit('websocket::connected');
});
ws.on('message', function(msg){
- self.emit('websocket::message',JSON.parse(msg));
+ console.log(msg);

This comment has been minimized.

Show comment Hide comment
@polidore

polidore Dec 24, 2011

this needs to go.

@polidore

polidore Dec 24, 2011

this needs to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment