IBrowserWebSocket interface
Partially represents a WebSocket from the HTML Living Standard. For more information, see https://html.spec.whatwg.org/multipage/web-sockets.html. This interface supports the framework and is not intended to be called directly for your code.
Properties
onclose | |
onerror | |
onmessage | |
onopen | |
ready |
Methods
close() | |
send(any) |
Property Details
onclose
onclose: (event: any) => void
Property Value
(event: any) => void
onerror
onerror: (event: any) => void
Property Value
(event: any) => void
onmessage
onmessage: (event: any) => void
Property Value
(event: any) => void
onopen
onopen: (event: any) => void
Property Value
(event: any) => void
readyState
readyState: number
Property Value
number
Method Details
close()
function close()
send(any)
function send(buffer: any)
Parameters
- buffer
-
any