UNPKG

@longlv91/training-common

Version:
37 lines (31 loc) 1.55 kB
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.G3JS = {})); }(this, (function (exports) { 'use strict'; (function (Role) { Role["ADMIN"] = "admin"; Role["SUPER_USER"] = "superuser"; Role["NORMAL_USER"] = "normaluser"; Role["ANONYMOUS_USER"] = "anonymoususer"; })(exports.Role || (exports.Role = {})); (function (StatusType) { StatusType[StatusType["ONLINE"] = 0] = "ONLINE"; StatusType[StatusType["OFFLINE"] = 1] = "OFFLINE"; StatusType[StatusType["DEACTIVATED"] = 2] = "DEACTIVATED"; })(exports.StatusType || (exports.StatusType = {})); (function (SocketEventType) { SocketEventType["TEST"] = "test"; SocketEventType["PINGPONG"] = "pingpong"; SocketEventType["JOIN_ROOM"] = "subscribe"; SocketEventType["LEAVE_ROOM"] = "unsubscribe"; SocketEventType["USER_METADATA"] = "user-metadata"; SocketEventType["MESSAGE"] = "message"; SocketEventType["CHANNEL_READY"] = "channelCreated"; SocketEventType["REQUEST_JOIN_CHANNEL"] = "requestJoinChannel"; SocketEventType["RESPONSE_JOIN_CHANNEL"] = "responseJoinChannel"; SocketEventType["ADD_MEMBER"] = "addMember"; SocketEventType["REMOVE_MEMBER"] = "removeMember"; })(exports.SocketEventType || (exports.SocketEventType = {})); Object.defineProperty(exports, '__esModule', { value: true }); })));