Skip to content
schweini edited this page Sep 8, 2015 · 8 revisions

How well does websocketd scale to large numbers of concurrent connections?

I'm not the developer, but AFAIK, you'd be limited by the Server's RAM. Every opened connection would fork a process. So, if you're writing your server in e.g. C, this could be quite small. If you're using something like Perl (as i am), or PHP, this oculd be around 5MB to 10MB.

How much latency does websocketd introduce?

Not the developer, but it should be absolutely minimal, once the connection is established. The initial connection might take some milliseconds, because websocketd will have to fork of a process and start your server process.

How can I send multiple-line messages?

How are my programs killed after a disconnect?

I've tried catching HUP, TERM and INT, and none of them seem to be sent to my program when I disconnect teh websocket. But I have to do some clean-up before exiting, so what can I do?

Clone this wiki locally