Sindbad~EG File Manager
"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));
});
};
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists