UNPKG

mikudos-socketio-app

Version:

mikudos-socketio-app for connection and call methods and sync events on mikudos-socketio-app server, which is provided only for socket.io connection.

13 lines 395 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HandlerBase = void 0; class HandlerBase { constructor(eventPath) { this.eventPath = eventPath; } async checkRoom(room, socket) { return (await socket.mikudos.app.clientRooms(socket)).includes(room); } } exports.HandlerBase = HandlerBase; //# sourceMappingURL=handler-base.js.map