UNPKG

@showbridge/lib

Version:

Main library for showbridge protocol router

35 lines (34 loc) 949 B
import { TCPProtocolParams } from '@showbridge/types/dist/models/params/protocols.js'; import { Server, Socket } from 'net'; import slip from 'slip'; import Protocol from './protocol.js'; declare class TCPProtocol extends Protocol<TCPProtocolParams> { #private; oscBundleTag: Buffer<ArrayBuffer>; sockets: { [key: string]: { [key: string]: Socket; }; }; incomingSLIPDecoders: { [key: string]: { [key: string]: slip.Decoder; }; }; outgoingSLIPDecoders: { [key: string]: { [key: string]: slip.Decoder; }; }; server: Server; constructor(protocolObj: any, router: any); reload(params: any): void; send(msg: Buffer, port: number, host: string, slipEncode: boolean): void; stop(): void; get status(): { enabled: boolean; listening: boolean; address: {}; }; } export default TCPProtocol;