How can I create WebServer and WebSocket on one port (80)? #5868
Replies: 1 comment
-
Posted at 2018-02-06 by Ollie Here is snippet that may help. You could use port 80 if wished.
Posted at 2018-02-06 by user85997 How should I write this together with:
? Posted at 2018-02-06 by @gfwilliams It's just as shown here: http://www.espruino.com/ws#websocket-server Creating a WebSocket server on a port also creates an HTTP server on that same port. You can see that Hope that helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-02-06 by user85997
All the examples I saw work on different ports (for example 80 + 8800, ...) I'm just starting an acquaintance. And for my project you need this functionality.
Beta Was this translation helpful? Give feedback.
All reactions