UNPKG

@loopeco/socketio

Version:

A enhanced LoopBack's WebSocket server based on socket.io

35 lines 1.85 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SocketIoTags = exports.SocketIoBindings = void 0; const core_1 = require("@loopback/core"); var SocketIoBindings; (function (SocketIoBindings) { SocketIoBindings.CONFIG = core_1.CoreBindings.APPLICATION_CONFIG; SocketIoBindings.IO = core_1.BindingKey.create('socketio.io'); SocketIoBindings.REQUEST_LISTENER = core_1.BindingKey.create('socketio.request.handler'); /** * Binding key for the server itself */ SocketIoBindings.SERVER = core_1.BindingKey.create('servers.SocketServer'); SocketIoBindings.SOCKET = core_1.BindingKey.create('socketio.socket'); SocketIoBindings.MESSAGE = core_1.BindingKey.create('socketio.message'); SocketIoBindings.SEQUENCE = core_1.BindingKey.create('socketio.sequence'); SocketIoBindings.INVOKE_METHOD = core_1.BindingKey.create('socketio.sequence.invokeMethod'); SocketIoBindings.SEND_METHOD = core_1.BindingKey.create('socketio.sequence.sendMethod'); SocketIoBindings.REJECT_METHOD = core_1.BindingKey.create('socketio.sequence.rejectMethod'); /** * Binding key for setting and injecting the host name of Http Server */ SocketIoBindings.HOST = core_1.BindingKey.create('socketio.host'); /** * Binding key for setting and injecting the port number of Http Server */ SocketIoBindings.PORT = core_1.BindingKey.create('socketio.port'); SocketIoBindings.CONTROLLERS_NAMESPACE = 'socketio.controllers'; })(SocketIoBindings = exports.SocketIoBindings || (exports.SocketIoBindings = {})); var SocketIoTags; (function (SocketIoTags) { SocketIoTags.SOCKETIO = 'socketio'; SocketIoTags.SOCKETIO_MIDDLEWARE_CHAIN = 'middlewareChain.socketio'; })(SocketIoTags = exports.SocketIoTags || (exports.SocketIoTags = {})); //# sourceMappingURL=keys.js.map