Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to specify the protocol (SSL) #120

Open
MateusMendesSantana opened this issue May 13, 2020 · 2 comments
Open

Allow to specify the protocol (SSL) #120

MateusMendesSantana opened this issue May 13, 2020 · 2 comments

Comments

@MateusMendesSantana
Copy link

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 endel pinned this issue Oct 20, 2020
@endel
Copy link
Member

endel commented Oct 20, 2020

A related issue has been brought up in the colyseus.js client: colyseus/colyseus.js#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 endel changed the title Allow set protocol Allow to specify the protocol (SSL) Oct 20, 2020
@babacarcissedia
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants