IBrowserWebSocket interface
HTML Living Standard의 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