mirror of
https://github.com/Yonle/bostr.git
synced 2025-10-10 00:22:33 +02:00
@@ -14,7 +14,7 @@ sess.exec("CREATE TABLE IF NOT EXISTS events (cID TEXT, subID TEXT, eID TEXT);")
|
|||||||
|
|
||||||
// CL - User socket
|
// CL - User socket
|
||||||
module.exports = (ws, req) => {
|
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 => {
|
ws.on("message", data => {
|
||||||
try {
|
try {
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
|
Reference in New Issue
Block a user