edgeport - v1.0.3
    Preparing search index...

    Function connectMsrp

    • Opens an active MSRP session by dialing the peer's MSRP path.

      The peer path (from the SDP answer's a=path) supplies the host/port/TLS to connect to; the session sends SEND requests with To-Path/From-Path set, chunks large bodies, and delivers inbound messages via MsrpSession.messages.

      Parameters

      Returns Promise<MsrpSession>

      The live MSRP session.

      If the MSRP connection cannot be opened.

      1.0.3

      import { connectMsrp } from 'edgeport/sip';

      await using msrp = await connectMsrp({ remotePath: peerPath, localPath: myPath });
      await msrp.send('hello over MSRP');