Modified Step 5 of 'WebSocket Client'