IBrowserWebSocket interface
部分表示來自 HTML 生活標準的 WebSocket。 如需詳細資訊,請參閱 https://html.spec.whatwg.org/multipage/web-sockets.html。 此介面支持架構,並不適合直接為您的程式代碼呼叫。
屬性
onclose | |
onerror | |
onmessage | |
onopen | |
ready |
方法
close() | |
send(any) |
屬性詳細資料
onclose
onclose: (event: any) => void
屬性值
(event: any) => void
onerror
onerror: (event: any) => void
屬性值
(event: any) => void
onmessage
onmessage: (event: any) => void
屬性值
(event: any) => void
onopen
onopen: (event: any) => void
屬性值
(event: any) => void
readyState
readyState: number
屬性值
number
方法詳細資料
close()
function close()
send(any)
function send(buffer: any)
參數
- buffer
-
any