kkrpc
    Preparing search index...

    Module mod

    Stable browser-safe core package entry published as kkrpc.

    Import this entry for RPCChannel, wrap(), expose(), protocol types, plugin primitives, codecs, and transfer helpers. Runtime transports and optional peer-backed features intentionally live in subpaths so the main entry stays portable across Node.js, Bun, Deno, browsers, workers, and bundlers.

    import { wrap } from "kkrpc"
    import { webSocketClientTransport } from "kkrpc/ws"

    const api = wrap<RemoteAPI>(webSocketClientTransport({ url: "ws://localhost:3000" }))

    Classes

    RPCCallbackReleasedError
    RPCChannel
    RPCTransportClosedError

    Interfaces

    CallOptions
    Codec
    CodecCapabilities
    ExposedController
    Platform
    PlatformCapabilities
    RPCCallback
    RPCCallbackRelease
    RPCChannelOptions
    RPCError
    RPCErrorContext
    RPCHandlerContext
    RPCMessageMetadata
    RPCPlugin
    RPCRequest
    RPCRequestContext
    RPCResponse
    RPCResponseContext
    RPCStreamRequest
    RPCStreamResponse
    TransferDescriptor
    Transport
    TransportCapabilities

    Type Aliases

    RPCMessage
    RPCOperation
    RPCStreamOperation

    Functions

    dispose
    expose
    releaseCallback
    transfer
    withCallOptions
    wrap