Hi! I need to get a certain cookie when the server emits the 'upgrade' event:
server.on('upgrade', (request: IncomingMessage, socket: Socket, head: Buffer) => {
// get request cookie here
})
Is it possible to do this? From what I can see inspecting the source code it should be, but if I emit the response parameter typescript complains. Is this a @types/cookies issue then?
Hi! I need to get a certain cookie when the server emits the 'upgrade' event:
Is it possible to do this? From what I can see inspecting the source code it should be, but if I emit the response parameter typescript complains. Is this a @types/cookies issue then?