WebSocketI
export type WebSocketI = {
addEventListener(
kind: "error" | "open",
callback: (event: Event) => void
): void
send(msg: string): void
}
Interface for the builtin NodeJS and builtin Browser WebSocket instances
export type WebSocketI = {
addEventListener(
kind: "error" | "open",
callback: (event: Event) => void
): void
send(msg: string): void
}
Interface for the builtin NodeJS and builtin Browser WebSocket instances