Modern solution for WebSocket servers?

For my site, I wrote a WebSockets server in C # (the most preferred language for coding) that uses Fleck , and that’s about 600 lines of code. Everything seems to work decently (sometimes a little unstable). Not sure if this is a problem with my code or Fleck).

However, I want to transfer this from my computer to the actual domain, and I'm not sure if there are hosting providers that support such .NET console applications.

I thought that I might have to rewrite it in another language, such as PHP, but I'm a little unsure of this idea. Are there any popular hosting providers who will support what I'm looking for? And even if they are, is that such a good idea? I believe this may be less secure or slower than the typical solution for using Perl, PHP or Python for servers. (a lot of P)

Finally, if it would be nice to rewrite, I'm not sure what language I will write it in. It has been a while, and I'm not sure what is still being used. Is PHP still considered the most supported and safe for web servers?

Which WebSockets implementation is best suited? It took me a while to find Fleck, and there seemed to be twice as many PHP derivatives, and I feel a little overloaded. In addition, many Stackoverflow posts about WebSockets are two years ago when they were not supported.

Sorry for my naivety and lack of attention in my question, but, as you can see, I'm a little confused about what my course of action should be, and I'm looking for some idea. Thanks for reading.

+5
source share
2 answers

, WebSocket Socket.IO. Node (Javascript) /AJAX, WebSockets .

WebSockets python pywebsocket, Mozilla, Google . , pywebsocket Apache, - - .

WebSocket , WebSocket, Pusher. .

PHP WebSocket. PHP, , WebSocket. iOS, IETF 6455 Chrome, Firefox, IE10 Flash WebSocket polyfill web-socket-js.

, , PHP - -. , PHP , , . , PHP . , , PHP.

C- , libwebsockets, C ++ WebSocket. libwebsockets IETF, .

Ruby - /, WebSockets (, Node). websocket Ruby - em-weboskcet.

+5

node.js, "", .

-1

All Articles