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

Separe port/services for Websocket and Webserver #39

Closed
enrutador opened this issue Jul 23, 2018 · 2 comments
Closed

Separe port/services for Websocket and Webserver #39

enrutador opened this issue Jul 23, 2018 · 2 comments

Comments

@enrutador
Copy link

Hi Christophe
Congratulations for your work ¡¡¡. I have a question about the constructor:

Is it possible to change the ports of the websocket process and the webserver process?
For example, the webserver works on port 80 and websocket on 81. I notice that while I have port 80 opened by ws: // the protocol http: // the web server stops working
A lot of thanks

@jczic
Copy link
Owner

jczic commented Jul 23, 2018

Hello and thank you !
You can change the port of the web server by passing port=xxx to the constructor.
WebSockets are handled by the web server, so this is the same port number.
If you want to have a web server (for get/post/ajax...) on a port and websockets on a different port, you must to instanciate 2 web server with different args and different management.
Another idea ? :)

@jczic jczic closed this as completed Jul 23, 2018
@jczic jczic assigned jczic and unassigned jczic Jul 23, 2018
@jczic
Copy link
Owner

jczic commented Oct 20, 2019 via email

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

No branches or pull requests

2 participants