Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 1.22 KB

eth-connect.iwebsocket.md

File metadata and controls

28 lines (19 loc) · 1.22 KB

Home > eth-connect > IWebSocket

IWebSocket interface

Signature:

export interface IWebSocket 

Properties

Property Modifiers Type Description
onclose ((this: this, ev: any) => any) | null
onerror ((this: this, ev: any) => any) | null
onmessage ((this: this, ev: any) => any) | null
onopen ((this: this, ev: any) => any) | null

Methods

Method Description
close(code, reason) Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
send(data) Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView.