/
home
/
infinitibizsol
/
insurcrm.infinitibizsol.com
/
socket
/
File Upload :
llllll
Current File: /home/infinitibizsol/insurcrm.infinitibizsol.com/socket/handlers.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.handleConnection = void 0; var handleConnection = exports.handleConnection = function handleConnection(socket, io) { // Emit a welcome message socket.emit("welcome", { message: "Welcome to the Socket.IO server!" }); // Listen for a custom "message" event socket.on("message", function (data) { console.log("Message received: ".concat(data)); // Broadcast the message to all connected clients io.emit("message", data); }); // Example: Add more custom events as needed socket.on("customEvent", function (data) { console.log("Custom Event received: ".concat(data)); }); };
Copyright ©2k19 -
Hexid
|
Tex7ure