Skip to main content
Server.prototype.setTicketKeys - node__tls.d.ts - Node documentation
method Server.prototype.setTicketKeys

Usage in Deno

```typescript import { Server } from "node:node__tls.d.ts"; ```
Server.prototype.setTicketKeys(keys: Buffer): void
Sets the session ticket keys. Changes to the ticket keys are effective only for future server connections. Existing or currently pending server connections will use the previous keys. See `Session Resumption` for more information.

Parameters

keys: Buffer
A 48-byte buffer containing the session ticket keys.

Return Type

void