samples of websocket package