Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sockets/deps.ts>DenoServer

A WebSocket library for Deno.
Latest
class DenoServer
implements AsyncIterable<ServerRequest>
import { DenoServer } from "https://deno.land/x/sockets@v0.5.0/deps.ts";

Constructors

new
DenoServer(listener: Deno.Listener)

Properties

private
closing: boolean
private
connections: Deno.Conn[]

Methods

private
acceptConnAndIterateHttpRequests(mux: MuxAsyncIterator<ServerRequest>): AsyncIterableIterator<ServerRequest>
private
iterateHttpRequests(conn: Deno.Conn): AsyncIterableIterator<ServerRequest>
private
trackConnection(conn: Deno.Conn): void
private
untrackConnection(conn: Deno.Conn): void
close(): void
[Symbol.asyncIterator](): AsyncIterableIterator<ServerRequest>