How do I deal with BINARY_EVENT data? #67
Closed
tjad
announced in
Announcements
Replies: 3 comments 1 reply
-
|
server: import "github.com/zishang520/engine.io-go-parser/types"
client.On("bindata", func(args ...any) {
utils.Log().Info("%#v", args[0].(types.BufferInterface))
})client: socket.emit("bindata",new Uint8Array([0x10, 0x20, 30, 40])) |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Binary content has invisible content, so you need to use |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you very much @zishang520 for fast response! This was not clear from the README documentation - perhaps useful to add. All is working! Thank you again 🙏 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When event comes to server as BINARY_EVENT, the socket.io server does not see any data in the event listener.
How do I deal with this?
Beta Was this translation helpful? Give feedback.
All reactions