-
Notifications
You must be signed in to change notification settings - Fork 292
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 a byte array in pieces. #28
Comments
Reading the documentation seems like the problem could be that the I think I'm completely lost. 😲 |
if (message != "listening") This is a beginners' bug. Use |
Don't write a |
A WebSocket message (text message or binary message) consists of one or more frames. If you want to send one binary message that consists of multiple frames, you have to do the following.
See "Send Frames" in |
Thanks |
I'm trying to use the library to send an
InputStream
asbyte[]
.InputStream
(~600kb) everything works. However, I want to be able to read and send smaller pieces (~4k).Thread.sleep(100)
after sending each binary message I works.Here is the code I'm using:
The text was updated successfully, but these errors were encountered: