Skip to main content
Module

x/websocket/deps.ts

🦕 A simple WebSocket library like ws of node.js library for deno
Latest
import * as websocket from "https://deno.land/x/websocket@v0.1.4/deps.ts";

Functions

Upgrade inputted TCP connection into WebSocket connection.

Make an assertion that actual and expected are equal, deeply. If not deeply equal, then throw.

Make an assertion that actual and expected are not equal, deeply. If not then throw.

Executes a function which returns a promise, expecting it to throw or reject. If it does not, then it throws. An error class and a string that should be included in the error message can also be asserted.

Returns true if input value is a WebSocketCloseEvent, false otherwise.

Returns true if input value is a WebSocketPingEvent, false otherwise.

Returns true if input value is a WebSocketPongEvent, false otherwise.

Create a HTTP server