From fac05b6c28b89fca52df26af63f3c066cde6841b Mon Sep 17 00:00:00 2001 From: jin Date: Thu, 7 Nov 2024 17:12:05 +0300 Subject: [PATCH] $mol_build: compat types --- build/server/server.node.ts | 4 ++-- server/server.node.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/server/server.node.ts b/build/server/server.node.ts index 9ea079d24b..c3ad3f3fa4 100644 --- a/build/server/server.node.ts +++ b/build/server/server.node.ts @@ -221,7 +221,7 @@ namespace $ { } @ $mol_mem - lines( next = new Map< InstanceType<$node['ws']>, string >() ) { + lines( next = new Map< InstanceType<$node['ws']['WebSocket']>, string >() ) { return next } @@ -268,7 +268,7 @@ namespace $ { } @ $mol_mem_key - notify( [ line, path ]: [ InstanceType<$node['ws']>, string ] ) { + notify( [ line, path ]: [ InstanceType<$node['ws']['WebSocket']>, string ] ) { try { diff --git a/server/server.node.ts b/server/server.node.ts index de79502273..6a81f08851 100644 --- a/server/server.node.ts +++ b/server/server.node.ts @@ -55,12 +55,12 @@ namespace $ { } - connections = new Set< InstanceType<$node['ws']> >() + connections = new Set< InstanceType<$node['ws']['WebSocket']> >() @ $mol_mem socket() { - const socket = new $node.ws.Server({ + const socket = new $node.ws.WebSocket.Server({ server : this.http() , // perMessageDeflate: { // zlibDeflateOptions: {