method WebSocket.addEventListener
Jump to headingWebSocket.addEventListener<K extends keyof WebSocketEventMap>(type: K,listener: (this: WebSocket,ev: WebSocketEventMap[K],) => any,options?: boolean | AddEventListenerOptions,): voidType Parameters Jump to heading
Jump to headingK extends keyof WebSocketEventMapParameters Jump to heading
Jump to headingtype: KJump to headinglistener: (this: WebSocket,ev: WebSocketEventMap[K],) => anyoptional
Jump to headingoptions: boolean | AddEventListenerOptionsReturn Type Jump to heading
voidJump to headingWebSocket.addEventListener(type: string,listener: EventListenerOrEventListenerObject,options?: boolean | AddEventListenerOptions,): voidParameters Jump to heading
Jump to headingtype: stringoptional
Jump to headingoptions: boolean | AddEventListenerOptionsReturn Type Jump to heading
void