0

My flutter app need to send data type bytebuffer from client to sever via websocket. But web_socket_channel is not support send data type bytebuffer or number.

Are there any library support send bytebuffer via websocket in flutter app?

asked Oct 12, 2023 at 7:16
5
  • Think that your app needs to sent bytes. No buffers or any other data type. Commented Oct 12, 2023 at 7:39
  • with websocket you can only send either raw binary data or String, nothing more Commented Oct 12, 2023 at 8:16
  • @pskink raw binary data is bytebuffer??? what data type of binary data? not Uint8list, i think Uint8list is an array Commented Oct 13, 2023 at 6:59
  • api.flutter.dev/flutter/dart-typed_data/Uint8List-class.html - it is List<int> - in other words: binary data Commented Oct 13, 2023 at 7:01
  • @pskink My fault, i think List<int> not a binary type. thank you very much. Commented Oct 13, 2023 at 7:22

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.