adding a web socket server (unfinished)