colyseus-unity-sdk icon indicating copy to clipboard operation
colyseus-unity-sdk copied to clipboard

Allow to specify the protocol (SSL)

Open MateusMendesSantana opened this issue 5 years ago • 2 comments

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.

MateusMendesSantana avatar May 13 '20 00:05 MateusMendesSantana

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:

  • new Client({ host: "some-endpoint.com", port: 2567, secure: false })
  • new Client("ws://some-endpoint.com:2567", { secure: false })

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.

endel avatar Oct 20 '20 22:10 endel

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

babacarcissedia avatar Oct 20 '20 22:10 babacarcissedia