edgeport - v1.0.3
    Preparing search index...

    Function readMessage

    • Reads one complete SIP message off a framed reader, or null at end of stream.

      Reads the header block up to the blank-line separator, parses it to learn Content-Length, then reads the body. Leading keep-alive CRLFs between messages are skipped.

      Parameters

      • reader: FramedReader

        The buffered socket reader.

      • OptionaltimeoutMs: number

        Optional per-read deadline.

      Returns Promise<SipMessage | null>

      The parsed message, or null if the peer closed the connection.

      If a header block is malformed.

      If timeoutMs elapses.

      1.0.3