import { type WebSocket } from "https://deno.land/x/abc@v1.3.3/vendor/https/deno.land/std/ws/mod.ts";
Properties
readonly
conn: Deno.ConnMethods
[[Symbol.asyncIterator]](): AsyncIterableIterator<WebSocketEvent>
send(data: WebSocketMessage): Promise<void>
ping(data?: WebSocketMessage): Promise<void>
Close connection after sending close frame to peer. This is canonical way of disconnection but it may hang because of peer's response delay. Default close code is 1000 (Normal Closure)