gimite / web-socket-js

HTML5 Web Socket implementation powered by Flash
BSD 3-Clause "New" or "Revised" License
2.74k stars 490 forks source link

How to start from different port than 843? #160

Closed F1LT3R closed 7 years ago

F1LT3R commented 9 years ago

Is it easy to change the port it listens to? I don't want to run sudo to start this server up if possible.

gimite commented 9 years ago

If the question is "How to let web-socket-js to talk to a specific WebSocket port", then you can do it by e.g.,:

var ws = new WebSocket("ws://example.com:12345");

If the question is "How to run WebSocket server at a specific port", then it depends on what WebSocket server you are using. (em-websocket? pywebsocket?)

F1LT3R commented 9 years ago

Cool! I will give this a try later.