Answer the question
In order to leave comments, you need to log in
How to manage sockets? Send your "left" sockets to a remote server?
There is one game on the Internet, it was recently remade, and now it runs on CANVAS and WebGL. Everything used to be DOM. I wrote a bot that plays for me in JS, so I practiced. Now you can’t access the DOM, since as I wrote above, it all works already on CANVAS and WebGL :(. But I opened new doors for myself, I noticed that now this game uses all web sockets. The SockJS library is used , I already studied it a little.
I looked, output, deleted "unnecessary" json data, and as a result wrote down only the most necessary data that comes in.
I studied the system, but not all, and now I need to learn how to send MY json data to the server The
URL of the server is known to me.
What should it be, and what required arguments should be present in JSON, I know.
But there are a couple of things! Request_id is always present in the request, it is new every time, and unfortunately I don't know how to generate it...
Where do you think this can happen? I searched through the files myself, but the result is zero :( Perhaps it is generated on the server. What do you think about this ?
Go ahead ! I learned how to receive json data via web sockets, but I don’t know how to send it.
Please enlighten me.
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question