write sample web socket server