| 63 | | Http2Server; |
| 64 | |
| 65 | interface ServerOptions extends EngineOptions, AttachOptions { |
| 66 | /** |
| 67 | * name of the path to capture |
| 68 | * @default "/socket.io" |
| 69 | */ |
| 70 | path: string; |
| 71 | /** |
| 72 | * whether to serve the client files |
| 73 | * @default true |
| 74 | */ |
| 75 | serveClient: boolean; |
| 76 | /** |
| 77 | * the adapter to use |
| 78 | * @default the in-memory adapter (https://github.com/socketio/socket.io-adapter) |
| 79 | */ |
| 80 | adapter: AdapterConstructor; |
| 81 | /** |
| 82 | * the parser to use |
| 83 | * @default the default parser (https://github.com/socketio/socket.io-parser) |
| 84 | */ |
| 85 | parser: any; |
| 86 | /** |
| 87 | * how many ms before a client without namespace is closed |
| 88 | * @default 45000 |
| 89 | */ |
| 90 | connectTimeout: number; |
| 91 | /** |
| 92 | * Whether to enable the recovery of connection state when a client temporarily disconnects. |
| 93 | * |
| 94 | * The connection state includes the missed packets, the rooms the socket was in and the `data` attribute. |
| 95 | */ |
| 96 | connectionStateRecovery: { |
| 97 | /** |
| 98 | * The backup duration of the sessions and the packets. |
| 99 | * |
| 100 | * @default 120000 (2 minutes) |
| 101 | */ |
| 102 | maxDisconnectionDuration?: number; |
| 103 | /** |
| 104 | * Whether to skip middlewares upon successful connection state recovery. |
| 105 | * |
| 106 | * @default true |
| 107 | */ |
| 108 | skipMiddlewares?: boolean; |
| 109 | }; |
| 110 | /** |
| 111 | * Whether to remove child namespaces that have no sockets connected to them |
| 112 | * @default false |
| 113 | */ |
| 114 | cleanupEmptyChildNamespaces: boolean; |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Represents a Socket.IO server. |
nothing calls this directly
no outgoing calls
no test coverage detected