Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs/websockets/adapters/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AbstractWsAdapter = void 0;
const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
const core_1 = require("@nestjs/core");
const constants_1 = require("../constants");
class AbstractWsAdapter {
constructor(appOrHttpServer) {
if (appOrHttpServer && appOrHttpServer instanceof core_1.NestApplication) {
this.httpServer = appOrHttpServer.getUnderlyingHttpServer();
}
else {
this.httpServer = appOrHttpServer;
}
}
bindClientConnect(server, callback) {
server.on(constants_1.CONNECTION_EVENT, callback);
}
bindClientDisconnect(client, callback) {
client.on(constants_1.DISCONNECT_EVENT, callback);
}
async close(server) {
const isCallable = server && shared_utils_1.isFunction(server.close);
isCallable && (await new Promise(resolve => server.close(resolve)));
}
// eslint-disable-next-line @typescript-eslint/no-empty-function
async dispose() { }
}
exports.AbstractWsAdapter = AbstractWsAdapter;
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]-- |