sending data to client over WebSocket - sample