Fix ws_socket to be able to connect to it

"Kind of" WIP, as waysome quits (gracefully) after the connection got
closed by the client. I don't know why, yet.

Targets #652.