CodeQL library for JavaScript
Search

Module WebSocket

Provides classes for working with WebSocket, ws, and SockJS.

The model is based on the EventEmitter model, and there is therefore a data-flow step from where a WebSocket event is sent to where the message is received.

Data flow is modeled both from clients to servers, and from servers to clients. The model models that clients can send messages to all servers, and servers can send messages to all clients.

Import path

import semmle.javascript.frameworks.WebSocket

Imports

javascript

Provides classes for working with JavaScript programs, as well as JSON, YAML and HTML.

Modules

ClientWebSocket

Provides classes that model WebSockets clients.

ServerWebSocket

Provides classes that model WebSocket servers.