1
0
Fork 0
This repository has been archived on 2024-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
letu/sockets/index.js
2020-11-02 17:18:03 +01:00

10 lines
489 B
JavaScript

module.exports = socket => {
console.log("New connection !");
socket.on("login", require("./login")(socket));
socket.on("register", require("./register")(socket));
socket.on("checkResend", require("./email/checkResend")(socket));
socket.on("forgotPassword", require("./email/forgotPassword")(socket));
socket.on("setPassword", require("./email/setPassword")(socket));
socket.on("profileEdit", require("./profile/edit")(socket));
socket.emit("connected");
}