Simple multiplayer game solutions

I want to create a simple multiplayer game. At the moment I am just trying to send informations from the client to the sever and vice versa.

I was thinking of the early use of socketio (This is what I would arrange), but as I can read in the doc, it seems impossible (Or hard to implement). (https://docs.cocos2d-x.org/creator/manual/en/scripting/network.html#socketio)

So I looked at the more traditional websockets, but it seems limited, and each tutorial redirects to socket.io for of a multiplayer game.

1 / Do you have ideas for another method? If possible in javascript
2 / If it’s possible, could I have more detailed information about using socket.io in cocos creator as a client?
3 / How to manage physics with these methods?

Thank you

I did find in this place in this docs, it says

“WebSocket Simple example:”

 ws = new WebSocket("ws://echo.websocket.org");
 ws.onopen = function (event) {
     console.log("Send Text WS was opened.");
 };
 ws.onmessage = function (event) {
     console.log("response text msg: " + event.data);
 };
 ws.onerror = function (event) {
     console.log("Send Text fired an error");
 };
 ws.onclose = function (event) {
     console.log("WebSocket instance closed.");
 };

 setTimeout(function () {
     if (ws.readyState === WebSocket.OPEN) {
         ws.send("Hello WebSocket, I'm a text message.");
     }
     else {
         console.log("WebSocket instance wasn't ready...");
     }
 },

the docs say

Unfortunately, Creator does not provide Socket.io official support on the Web platform, requires users to add them themselves to the project. And the Socket.io of the native platform is discarded. Previously the socket.io for the native platform was implemented by a third-party developer and has not been maintained for a long time. So it is not recommended to use.