Change event listener for WebSocket