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

add web sockets support #75

Closed
benoitc opened this issue Jan 2, 2014 · 6 comments
Closed

add web sockets support #75

benoitc opened this issue Jan 2, 2014 · 6 comments

Comments

@benoitc
Copy link
Owner

benoitc commented Jan 2, 2014

No description provided.

@edgurgel
Copy link
Collaborator

edgurgel commented Jan 2, 2014

Do you have any idea how should it work? Something like https://github.com/jeremyong/websocket_client ?

@benoitc
Copy link
Owner Author

benoitc commented Jan 2, 2014

I am more thinking to an API like the async one. Ie you open a websocket, set the pid where to receive the messages (by default self()) Then you can pause, continue or cancel the stream. I am thinking to do the same for SPDY as well. Nothing stop after that to propose an API ala gen_server on top. What do you think?

Also the parser should be synchronous and available in hackney_lib.

@edgurgel
Copy link
Collaborator

edgurgel commented Jan 2, 2014

Interesting... And how this async-like API will send messages back as websockets are two-way communication?

@benoitc
Copy link
Owner Author

benoitc commented Jan 2, 2014

by sending a message to the ref
On Jan 2, 2014 6:33 PM, "Eduardo Gurgel" notifications@github.com wrote:

Interesting... And how this async-like API will send messages back as
websockets are two-way communication?


Reply to this email directly or view it on GitHub.

@behrad
Copy link

behrad commented Jan 13, 2014

Yes they are.
You MAY be interested in these 3 different handlers in Zotonic project: https://github.com/zotonic/zotonic/tree/master/modules/mod_base/support

@benoitc
Copy link
Owner Author

benoitc commented Jan 13, 2014

@behrad yeah it was just a snarky comment sorry... so the api above should work :) I will have a look in the zotonic modules thanls for the link :)

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

No branches or pull requests

3 participants