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 messages #123

Open
atyachin opened this issue Jul 17, 2021 · 0 comments
Open

Sending binary messages #123

atyachin opened this issue Jul 17, 2021 · 0 comments

Comments

@atyachin
Copy link

I couldn't find a sample in the docs/Readme on how to send binary data.
This is one way of doing this:

$buffer = "\x63\x7c\x77\x7b\xf2\x6b\x6f\xc5\x30\x01";     // just a sample
$conn->send(new \Ratchet\RFC6455\Messaging\Frame($buffer, true, \Ratchet\RFC6455\Messaging\Frame::OP_BINARY));
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