Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run WebSocket Server locally

Tags:

websocket

I'm creating application with SIP phone. I need setup WebSocket Server locally for tests. After searching in Internet I can't found easy to install and configure solution.

Can you recommend me WebSocket Server solution?

like image 417
Mr Jedi Avatar asked Jul 30 '26 09:07

Mr Jedi


1 Answers

Well, the question is way to open, since because WebSockets are just a type of transport, it is difficult to find a "easy to install and configure solution". You will need to choose a base framework, a websocket library and then cope with the particularities of such combination.

For example, you can use

  • node.js and socket.io : https://github.com/vtortola/WebSocketListener/wiki/Mono-support
  • Mono and WebSocketListener : https://github.com/vtortola/WebSocketListener/wiki/Mono-support
  • Java and its WebSocket: https://blog.idrsolutions.com/2013/12/websockets-an-introduction/
  • PHP/Apache and Ratchet: http://socketo.me/

Of, if you have already a TCP service, you can use WebSockify to provide the same service through WebSockets: https://github.com/kanaka/websockify

So it is a matter of taste and what you feel more comfortable with.

like image 93
vtortola Avatar answered Aug 02 '26 09:08

vtortola



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!