Sha256: 3cdf40cbd80cede2b386db05b82d248ceed817af8ca8fb138eac65b958cb7105

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

/**
 * Represents WebSocket connection data.
 */
export class WsConnectionData {
    /**
     * Constructs a new WsConnectionData instance.
     * @param hostname - The hostname of the connection.
     */
    constructor(hostname: string)

    readonly connectionType: any

    /** The hostname of the connection. */
    hostname: any

    /**
     * Serializes the connection data.
     * @returns An array of connection data values.
     */
    serializeConnectionData(): number[]

    /**
     * Checks equality with another WsConnectionData object.
     * @param other - The object to compare with.
     * @returns `true` if equal, otherwise `false`.
     */
    equals(other: any): boolean
}

declare enum RuntimeName {
    Clr = 0,
    Go = 1,
    Jvm = 2,
    Netcore = 3,
    Perl = 4,
    Python = 5,
    Ruby = 6,
    Nodejs = 7,
    Cpp = 8,
}

interface RuntimeChannel {
    type: 'inMemory' | 'tcp' | 'webSocket'
    host?: string
    port?: number
}

interface Runtime {
    name: string
    customOptions: string
    modules: string
    channel: RuntimeChannel
    runtimeName: RuntimeName
}

type Runtimes = {
    [Key in keyof typeof RuntimeName]: Runtime[]
}

export interface ConfigSource {
    [key: string]: any
    licenseKey: string
    runtimes: Partial<Runtimes>
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
javonet-ruby-sdk-2.5.10 lib/javonet-ruby-sdk/Binaries/Nodejs/lib/declarations.d.ts
javonet-ruby-sdk-2.5.9 lib/javonet-ruby-sdk/Binaries/Nodejs/lib/declarations.d.ts