websocketexample initial implementation