fix(core): update

This commit is contained in:
Philipp Kunz 2023-01-05 17:00:31 +01:00
parent 20b9a220fc
commit 055d328bd0
2 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@pushrocks/smartproxy',
version: '3.0.43',
version: '3.0.44',
description: 'a proxy for handling high workloads of proxying'
}

View File

@ -246,8 +246,8 @@ JNj2Dr5H0XoLFFnvuvzcRbhlJ9J67JzR+7g=
// Enable websockets
const wss = new plugins.ws.WebSocketServer({ server: this.httpsServer });
wss.on('connection', (ws: plugins.wsDefault, reqArg) => {
console.log(`got connection for wsc for https://${req.get('host')}${reqArg.url}`);
wss.on('connection', (ws: plugins.wsDefault, reqArg: plugins.http.IncomingMessage) => {
console.log(`got connection for wsc for https://${reqArg.headers.host}${reqArg.url}`);
let wscConnectedDeferred: plugins.smartpromise.Deferred<plugins.wsDefault>;
ws.on('message', async (message) => {