FIX dispatchEvent: call event handler in context of the WebSocket
instance