mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-08-18 06:45:59 +08:00
add
This commit is contained in:
parent
7978588370
commit
31f46fce2c
@ -58,7 +58,7 @@ var server = wss.createServer(function(conn){
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
conn.on("error", function(){})
|
conn.on("error", function(){})
|
||||||
conn.on("close", function(){ console.log("close:", new URL(curr_url).origin) })
|
conn.on("close", function(){ console.log("close:", new URL(curr_url).origin); global.conn = undefined })
|
||||||
})
|
})
|
||||||
server.listen(WSS_SERVER_PORT, function(){
|
server.listen(WSS_SERVER_PORT, function(){
|
||||||
console.log("wss start @", WSS_SERVER_PORT);
|
console.log("wss start @", WSS_SERVER_PORT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user