issy123 / agario-protocol

Protocol for agar.io version 2.1.5
8 stars 2 forks source link

Packet 128 #4

Open kscc25 opened 8 years ago

kscc25 commented 8 years ago

This packet asks client to reload agario.core.js, maybe due to outdate version of agario.core.js.

issy123 commented 8 years ago

Packet 128 only contains the opcode with no content?

You replaced window.WebSocket with your own version, is that correct? If yes, can you call WebSocket.onmessage which simulates opcode 128 and see what happends?

Another tip: To see the back and forths, you can create your own server and use agar.io?ip=yourserverip:port and see what gets send to your server and try for example sending 128 fromout your server.

kscc25 commented 8 years ago

I haven't tried simulating packet 128 but I always see it before the socket is closed. You can try the script here: https://github.com/SNSA/agario-client2/blob/master/app.js#L71