Skip to content

Function: openChannel() ​

ts
function openChannel(
   connection, 
   handler, 
   options?
): MessageChannel;

Defined in: netconf/src/transport/channel.ts:62

Put RFC 6242 framing on a connection: handler receives each whole message as a string. Framing starts in end-of-message mode; call useChunkedFraming() once the hello exchange has agreed base:1.1. See The framed message channel.

Parameters ​

connection ​

Connection

handler ​

ChannelHandler

options? ​

ChannelOptions = {}

Returns ​

MessageChannel

Released under the MIT Licence.