import { Session } from "https://deno.land/x/vim_channel_command@v3.0.0/session.ts";
Session is a wrapper of ReadableStream and WritableStream to send commands and receive messages.
Constructors
new
Session(reader: ReadableStream<Uint8Array>, writer: WritableStream<Uint8Array>)Constructs a new session.
Properties
The callback function to be called when an invalid message is received. The default behavior is to ignore the message.
optional
onMessage: (message: Message) => voidThe callback function to be called when a message is received. The default behavior is to ignore the message.