UNPKG

@loopback/socketio

Version:

LoopBack's WebSocket server based on socket.io

38 lines 2 kB
"use strict"; // Copyright IBM Corp. and LoopBack contributors 2019,2020. All Rights Reserved. // Node module: @loopback/socketio // This file is licensed under the MIT License. // License text available at https://opensource.org/licenses/MIT 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 = SocketIoBindings = {})); var SocketIoTags; (function (SocketIoTags) { SocketIoTags.SOCKET_IO = 'socketio'; })(SocketIoTags || (exports.SocketIoTags = SocketIoTags = {})); //# sourceMappingURL=keys.js.map