import { type WebSocket } from "https://deno.land/std@0.71.0/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)