Skip to content

Commit

Permalink
Added extraHeaders to SocketIoConfig (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
Witzler authored Oct 22, 2021
1 parent 13cc9e1 commit ce3226b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/config/socket-io.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,13 @@ export interface SocketIoConfig {
* A list of subprotocols. See https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#Subprotocols
*/
protocols?: any;

/**
* Additional headers (then found in socket.handshake.headers object on the server-side). Default value: -
*/
extraHeaders?: {
[header: string]: string;
};

// Additional options for NodeJS Engine.IO clients omitted: https://socket.io/docs/client-api/
};
}

0 comments on commit ce3226b

Please sign in to comment.