endel / NativeWebSocket

🔌 WebSocket client for Unity - with no external dependencies (WebGL, Native, Android, iOS, UWP)
Other
1.13k stars 155 forks source link

does it work only as websocket client? #85

Closed virtouso closed 1 year ago

virtouso commented 1 year ago

hi.

i also need my web socket server to be a unity3d app to push scores and rankings regularly to the players.

can i also make my server using this package?

endel commented 1 year ago

Hi @virtouso, this lib is just a WebSocket client. I'd recommend using an actual server for this. For an authoritative server I'd recommend Colyseus 😇

virtouso commented 1 year ago

@endel thank you for the fast reply.

if it was a turn-based or not a real-time game with per frame update, your suggestion is right, there is no need for a unity server. my preference is .net signalR.

but its a real-time UDP game that Unity server should hold the authority. but I still need a WebSocket server inside my Unity server to push scores and big metadata to the clients.