Hi. Does the socket support binary data transfer? #565
-
Does the socket support binary data transfer? ByteArray. Not ByteString |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 23 replies
-
Yes, binary data is supported. If you really need to, you can get a |
Beta Was this translation helpful? Give feedback.
-
No, no. I definitely call the send data. I see the call through the logs. Now I check if I am trying to send data before the connection is complete, because the connection is started by a separate thread. Tell me, does the WebSocketConnection.canSend variable work correctly? |
Beta Was this translation helpful? Give feedback.
-
I am facing a problem that I can't create an instance of a class.
|
Beta Was this translation helpful? Give feedback.
-
java.lang.ExceptionInInitializerError |
Beta Was this translation helpful? Give feedback.
-
I have to add something to build.gredl besides?
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
That's it! It worked! So the result is this: Thanks for your help |
Beta Was this translation helpful? Give feedback.
-
Thank you for such responsiveness |
Beta Was this translation helpful? Give feedback.
Yes, binary data is supported.
ByteString
is binary. It is toByteArray
whatString
is toCharArray
. It's a read-only group of bytes, unlikeByteArray
which is mutable.If you really need to, you can get a
ByteArray
from aByteString
usingtoByteArray()
.