Skip to main content
Module

x/msgpack_rpc/message.ts

🦕 Deno module to support msgpack-rpc
Go to Latest
import * as msgpackRpc from "https://deno.land/x/msgpack_rpc@v3.1.6/message.ts";

Functions

Check if an arbitrary data is Message or not

Check if an arbitrary data is NotificationMessage or not

Check if an arbitrary data is RequestMessage or not

Check if an arbitrary data is ResponseMessage or not

Type Aliases

Message used in MessagePack-RPC

If the method is executed correctly, this field is Nil. If the error occured at the server-side, then this field is an arbitrary object which represents the error.

A 32-bit unsigned integer number. This number is used as a sequence number. The server's response to the "Request" will have the same msgid.

A string which represents the method name.

An array of the function arguments. The elements of this array are arbitarary objects.

An arbitrary object, which represents the returned result of the function. If an error occured, this field should be nil.

The message type, must be the integer two (2) for "Notification" messages.

The message type, must be the integer zero (0) for "Request" messages.

The message type, must be the integer one (1) for "Response" messages.

Notification message which is sent from client to server.

Request message which is sent from client to server.

Response message which is sent from server to client as a response