Skip to content
New issue

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

Using socket.io-client. #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

polidore
Copy link

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.

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
Copy link
Author

runs on newest node.

self.emit('websocket::connected');
});

ws.on('message', function(msg){
self.emit('websocket::message',JSON.parse(msg));
console.log(msg);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant