Für php fand ich diese Implementierung ganz gut: https://github.com/Flynsarmy/PHPWebSocket-Chat/blob/master/class.PHPWebSocket.php
Für php fand ich diese Implementierung ganz gut: https://github.com/Flynsarmy/PHPWebSocket-Chat/blob/master/class.PHPWebSocket.php