mirror of
https://github.com/Yonle/bostr.git
synced 2025-09-20 22:50:30 +02:00
@@ -14,7 +14,7 @@ sess.exec("CREATE TABLE IF NOT EXISTS events (cID TEXT, subID TEXT, eID TEXT);")
|
||||
|
||||
// CL - User socket
|
||||
module.exports = (ws, req) => {
|
||||
ws.id = process.pid + "_" + csess.size;
|
||||
ws.id = process.pid + Math.floor(Math.random() * 1000) + "_" + csess.size;
|
||||
ws.on("message", data => {
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
|
Reference in New Issue
Block a user