Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

sentry / @nestjs/microservices   js

Repository URL to install this package:

Version: 7.0.10 

/ helpers / json-socket.d.ts

/// <reference types="node" />
import { Socket } from 'net';
export declare class JsonSocket {
    readonly socket: Socket;
    private contentLength;
    private isClosed;
    private buffer;
    private readonly stringDecoder;
    private readonly delimeter;
    get netSocket(): Socket;
    constructor(socket: Socket);
    connect(port: number, host: string): this;
    on(event: string, callback: (err?: any) => void): this;
    once(event: string, callback: (err?: any) => void): this;
    end(): this;
    sendMessage(message: any, callback?: (err?: any) => void): void;
    private onData;
    private handleData;
    private handleMessage;
    private formatMessageData;
}