UNPKG

@litert/televoke

Version:
53 lines 1.9 kB
"use strict"; /** * Copyright 2025 Angus.Fenying <fenying@litert.org> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.TvLegacyServerChannelV1 = void 0; const Shared = require("../shared"); const node_events_1 = require("node:events"); const streamManager = Shared.createDisabledStreamManagerFactory()(null); class TvLegacyServerChannelV1 extends node_events_1.EventEmitter { get context() { return {}; } get ended() { return false; } get finished() { return false; } get writable() { return false; } get isMessageSupported() { return false; } get isBinaryStreamSupported() { return false; } get id() { return 0; } get timeout() { return 30000; } get streams() { return streamManager; } constructor(transporter) { super(); this.transporter = transporter; } openBinaryStream() { throw new Shared.errors.cmd_not_impl(); } ping() { return Promise.reject(new Shared.errors.cmd_not_impl()); } sendBinaryChunk() { return Promise.reject(new Shared.errors.cmd_not_impl()); } sendMessage() { return Promise.reject(new Shared.errors.cmd_not_impl()); } close() { return; } } exports.TvLegacyServerChannelV1 = TvLegacyServerChannelV1; //# sourceMappingURL=LegacyServerChannel.impl.js.map