# Interface: WebSocketEventListenerMap
# Table of contents
# Properties
# Properties
# close
• close: (event
: CloseEvent) => void | { handleEvent
: (event
: CloseEvent) => void }
# Type declaration
▸ (event
: CloseEvent): void | { handleEvent
: (event
: CloseEvent) => void }
# Parameters
Name | Type |
---|---|
event | CloseEvent |
Returns: void | { handleEvent
: (event
: CloseEvent) => void }
# error
• error: (event
: ErrorEvent) => void | { handleEvent
: (event
: ErrorEvent) => void }
# Type declaration
▸ (event
: ErrorEvent): void | { handleEvent
: (event
: ErrorEvent) => void }
# Parameters
Name | Type |
---|---|
event | ErrorEvent |
Returns: void | { handleEvent
: (event
: ErrorEvent) => void }
# message
• message: (event
: MessageEvent) => void | { handleEvent
: (event
: MessageEvent) => void }
# Type declaration
▸ (event
: MessageEvent): void | { handleEvent
: (event
: MessageEvent) => void }
# Parameters
Name | Type |
---|---|
event | MessageEvent |
Returns: void | { handleEvent
: (event
: MessageEvent) => void }
# open
• open: (event
: WebSocketEvent) => void | { handleEvent
: (event
: WebSocketEvent) => void }
# Type declaration
▸ (event
: WebSocketEvent): void | { handleEvent
: (event
: WebSocketEvent) => void }
# Parameters
Name | Type |
---|---|
event | WebSocketEvent |
Returns: void | { handleEvent
: (event
: WebSocketEvent) => void }