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

x/socket_client/deps.ts

A simple WebSocket client for Deno
Latest
import * as socketClient from "https://deno.land/x/socket_client@0.1.0-alpha.1/deps.ts";

Namespaces

encode and decode for base64 encoding.

Classes

BufWriter implements buffering for an deno.Writer object. If an error occurs writing to a Writer, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.Writer.

Variables

Handlers are responsible for actual output of log messages. When a handler is called by a logger, it firstly checks that LogRecord's level is not lower than level of the handler. If level check passes, handlers formats log record into string and outputs it to target.

Functions

Make an assertion, error will be thrown if expr does not have truthy value.

Decodes a given RFC4648 base64 encoded string

CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation

Concatenate the given arrays into a new Uint8Array.

Read big endian 64bit long from BufReader

Read big endian 16bit short from BufReader

Slice number into 64bit big endian byte array

Type Aliases

Union of valid log level strings