updated ws demo
improved websocket client example