Optional
addWhether we should add a trailing slash to the request path.
Optional
allowwhether to enable compatibility with Socket.IO v2 clients
Optional
allowA function that receives a given handshake or upgrade request as its first parameter, and can decide whether to continue or not. The second argument is a function that needs to be called with the decided information: fn(err, success), where success is a boolean value where false means that the request is rejected, and err is an error code.
Optional
allowwhether to allow transport upgrades
Whether to remove child namespaces that have no sockets connected to them
Whether to enable the recovery of connection state when a client temporarily disconnects.
The connection state includes the missed packets, the rooms the socket was in and the data
attribute.
how many ms before a client without namespace is closed
Optional
cookieconfiguration of the cookie that contains the client sid to send as part of handshake response headers. This cookie might be used for sticky-session. Defaults to not sending any cookie.
Optional
corsthe options that will be forwarded to the cors module
Optional
destroydestroy unhandled upgrade requests
Optional
destroymilliseconds after which unhandled requests are ended
Optional
httpparameters of the http compression for the polling transports (see zlib api docs). Set to false to disable.
Optional
initialan optional packet which will be concatenated to the handshake packet emitted by Engine.IO.
Optional
maxhow many bytes or characters a message can be, before closing the session (to avoid DoS).
the parser to use
name of the path to capture
Optional
perparameters of the WebSocket permessage-deflate extension (see ws module api docs). Set to false to disable.
Optional
pinghow many ms before sending a new ping packet
Optional
pinghow many ms without a pong packet to consider the connection closed
whether to serve the client files
Optional
transportsThe low-level transports that are enabled. WebTransport is disabled by default and must be manually enabled:
Optional
upgradehow many ms before an uncompleted transport upgrade is cancelled
Optional
wswhat WebSocket server implementation to use. Specified module must conform to the ws interface (see ws module api docs). An alternative c++ addon is also available by installing eiows module.
the adapter to use