Skip to main content
Module

x/messagepack_rpc/mod.ts

🦕 Deno module that allows for the implementation of MessagePack-RPC using MessagePack as the message schema.
Go to Latest
import * as messagepackRpc from "https://deno.land/x/messagepack_rpc@v2.0.3/mod.ts";

Classes

Client is a wrapper of a session to send requests and notifications.

NoMethodFoundError is an error thrown when a method is not found in Dispatcher.

Session represents a MessagePack-RPC session.

Functions

Calls a method on a Dispatcher with the given parameters.

Checks if the given value is a message.

Type Aliases

Dispatcher is a map of method names to functions used in Session.

DispatcherFrom is a type function that infers the type of Dispatcher from an actual type.

Message

Notification message

Request message

Response message