implement the web socket connection