Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
interface WebSocketStream
allow-net
Unstable

Properties

url: string
opened: Promise<WebSocketConnection>
closed: Promise<WebSocketCloseInfo>
url: string
opened: Promise<WebSocketConnection>
closed: Promise<WebSocketCloseInfo>

Methods

close(closeInfo?: WebSocketCloseInfo): void
close(closeInfo?: WebSocketCloseInfo): void
variable WebSocketStream
allow-net
Unstable

type

{ readonly prototype: WebSocketStream; new (url: string, options?: WebSocketStreamOptions): WebSocketStream; }

type

{ readonly prototype: WebSocketStream; new (url: string, options?: WebSocketStreamOptions): WebSocketStream; }