-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Getting unexpected messages from some clients #5070
Comments
Hi! Do you think these are real clients trying to reach your application, or rather malicious clients sending junk?
This one is weird though, the data should always be either a Buffer or a string. I'm digging into this. |
I think it's extremely unlikely that these are fake or malicious clients. The access log also checks out so I think they are real. Here are the unique user agents of all the clients that do this so far:
In every case, I get a I don't know if any other messages come because I disconnect the client if the message is not a |
I'm using Engine.IO in my application primarily as a WebSocket wrapper with a long-polling fallback to work around firewalls.
My server is a Node.JS script that uses Engine.IO 6.5.0 and the client is a website that uses Engine.IO-Client 6.5.0.
All packets are sent by client and server in binary format.
Client is sending data like this:
Server is receiving data like this:
Almost every client is sending and receiving messages correctly (I get 48 bytes and
msg
is a Buffer).However, every day I get 1-2 clients that are sending something unexpected.
In the
socket.once("message")
callback, themsg
that these clients send is ALWAYS:Uint8Array
instead ofBuffer
orString
length
of 1 instead of 48[0x08]
instead of my dataThe user agents of these clients are:
The text was updated successfully, but these errors were encountered: