CodeQL library for JavaScript
codeql/javascript-all 0.3.5 (changelog, source)
Search

Module ServerWebSocket

Provides classes that model WebSocket servers.

Import path

import javascript

Predicates

getAServer

Gets a server created by a library named library.

Classes

ConnectionCallAsRouteHandler

A socket.on("connection", (msg, req) => {}) call seen as a HTTP route handler. req is a HTTP::IncomingMessage instance.

ReceiveNode

A registration of an event handler that receives data from a WebSocket.

SendNode

A message sent from a WebSocket server.

ServerHttpRequest

The req parameter of a socket.on("connection", (msg, req) => {}) call.

ServerSocket

A server WebSocket instance.

WebSocketRequestInput

An access user-controlled HTTP request input in a request to a WebSocket server.

Aliases

ServerHTTPRequest

DEPRECATED: Alias for ServerHttpRequest