D
D
dmitrystas2016-09-25 11:22:59
Node.js
dmitrystas, 2016-09-25 11:22:59

How to set cookie on websocket connection in Impress?

Good afternoon.
I am rewriting the application under Impress. Before using Impress, there was something like

var wss = require('ws').createServer();
wss.on('headers', (headers) => {
  headers.push('Set-Cookie: myTestCookie=testValue');
});

In \connect.ws\get.js, this cannot be done by itself, since it is too late to set the cookie at this stage. Can you please tell me how to do this on Impress?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question