debug websocket_encode