colyseus / colyseus-unity-sdk

⚔ Colyseus Multiplayer SDK for Unity
https://docs.colyseus.io/getting-started/unity-sdk/
MIT License
371 stars 102 forks source link

Allow to specify the protocol (SSL) #120

Open MateusMendesSantana opened 4 years ago

MateusMendesSantana commented 4 years ago

Hi. When I'm doing development tests I use http and ws protocols, but when deploying to production I have the need to connect to the server using https and wss. Maybe the best solution would be to separate into two URIs, one for the API and one for the GameServer. I am available to send a PR.

tks.

endel commented 3 years ago

A related issue has been brought up in the colyseus.js client: https://github.com/colyseus/colyseus.js/issues/68

I think we could come up with an API for all clients in the next version. Something like:

I'm considering JavaScript for these API's, ideally we should come up with something that is easily ported to other languages without having too many custom data structures.

babacarcissedia commented 3 years ago

I like new Client({ host: "some-endpoint.com", port: 2567, secure: false })