Online multiplayer pygame with socket, threading and pygbag

I need to put some multiplayer games made in pygame, online on a linux WEB server.
I tried with the Pygbag library, but it didn’t work with socket and threading on the server, is that right?
Would there be another way to do this a multiplayer game that runs on a WEB server?
Can someone help me please?

Hi, you could use non-blocking websockets but certainly not threading “as-is”.
You could try green-threading (asyncio based) instead with some code changes.

There’s some code to show you how to connect to an irc server sitting behind a websockify proxy ( using GitHub - novnc/websockify: Websockify is a WebSocket to TCP proxy/bridge. This allows a browser to connect to any application/server/service. )

webrtc ( peer 2 peer networking ) is also a possible solution but it would require extra librairies and i don’t know of any yet.

btw most pygbag users hang out on pygame-community discord server.