Skip to content

Commit

Permalink
$mol_build: compat types
Browse files Browse the repository at this point in the history
  • Loading branch information
jin committed Nov 7, 2024
1 parent 4a8390f commit fac05b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build/server/server.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -268,7 +268,7 @@ namespace $ {
}

@ $mol_mem_key
notify( [ line, path ]: [ InstanceType<$node['ws']>, string ] ) {
notify( [ line, path ]: [ InstanceType<$node['ws']['WebSocket']>, string ] ) {

try {

Expand Down
4 changes: 2 additions & 2 deletions server/server.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit fac05b6

Please sign in to comment.