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: {