A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://unetworking.github.io/uWebSockets.js/generated/interfaces/WebSocketBehavior.html below:

WebSocketBehavior | uWebSockets.js v20.46.0 documentation

interface WebSocketBehavior<UserData> {
    close?: ((ws

,

code

,

message) => void);
    closeOnBackpressureLimit?: boolean;
    compression?: number;
    drain?: ((ws) => void);
    dropped?: ((ws

,

message

,

isBinary) => void | Promise<void>);
    idleTimeout?: number;
    maxBackpressure?: number;
    maxLifetime?: number;
    maxPayloadLength?: number;
    message?: ((ws

,

message

,

isBinary) => void | Promise<void>);
    open?: ((ws) => void | Promise<void>);
    ping?: ((ws

,

message) => void);
    pong?: ((ws

,

message) => void);
    sendPingsAutomatically?: boolean;
    subscription?: ((ws

,

topic

,

newCount

,

oldCount) => void);
    upgrade?: ((res

,

req

,

context) => void | Promise<void>);
} Type Parameters Index Properties Optional close

close?: ((ws, code, message) => void)

Type declaration Optional closeOnBackpressureLimit

closeOnBackpressureLimit?: boolean

Optional compression

compression?: number

Optional drain

drain?: ((ws) => void)

Type declaration Optional dropped

dropped?: ((ws, message, isBinary) => void | Promise<void>)

Type declaration Optional idleTimeout

idleTimeout?: number

Optional maxBackpressure

maxBackpressure?: number

Optional maxLifetime

maxLifetime?: number

Optional maxPayloadLength

maxPayloadLength?: number

Optional message

message?: ((ws, message, isBinary) => void | Promise<void>)

Type declaration Optional open

open?: ((ws) => void | Promise<void>)

Type declaration Optional ping

ping?: ((ws, message) => void)

Type declaration Optional pong

pong?: ((ws, message) => void)

Type declaration Optional sendPingsAutomatically

sendPingsAutomatically?: boolean

Optional subscription

subscription?: ((ws, topic, newCount, oldCount) => void)

Type declaration Optional upgrade

upgrade?: ((res, req, context) => void | Promise<void>)

Type declaration

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4