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

sending binary message to specific client element (id) #59

Open
ghost opened this issue Apr 22, 2016 · 1 comment
Open

sending binary message to specific client element (id) #59

ghost opened this issue Apr 22, 2016 · 1 comment
Labels

Comments

@ghost
Copy link

ghost commented Apr 22, 2016

from web socket server, sending binary stream
is it possible to target to specific javascript element (id) ?
or:
how I can combine the binary message, with some 'header' text information ,
so when arriving to client, I can handle the binary, to put it on specific id ,from 'header info'?

@vtortola
Copy link
Owner

I am afraid that the WebSocket protocol does not provide by itself any way to attach headers or metadata to the messages being sent. If you want to do something like that, you have to implement your own protocol that can be understood in the client side.

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

No branches or pull requests

1 participant