FIX dispatchEvent: call event handler in context of the WebSocket

small fix in function dispatchEvent():
execute the event-handlers in context of the WebSocket instance (instead of the global/window context)