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

graft-like way to host the websocket client #3

Open
AdrianRossouw opened this issue Oct 5, 2014 · 0 comments
Open

graft-like way to host the websocket client #3

AdrianRossouw opened this issue Oct 5, 2014 · 0 comments

Comments

@AdrianRossouw
Copy link
Contributor

this is what i currently use in aether board

i'm pretty sure that can be made cleaner, so something like :

var graft   = require('graft');
var server = require('graft-http').server(3000);
var socket = require('graft-ws').server();
server.pipe(socket);
socket.pipe(graft);
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

No branches or pull requests

1 participant