started dispatch-server
This commit is contained in:
8
apps/dispatch-server/socket-events/connect-dispatch.ts
Normal file
8
apps/dispatch-server/socket-events/connect-dispatch.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { Server, Socket } from "socket.io";
|
||||
|
||||
export const handle = async (socket: Socket, io: Server) => {
|
||||
console.log("Connected to dispatch server");
|
||||
socket.on("disconnect", () => {
|
||||
console.log("Disconnected from dispatch server");
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user