edgeport - v1.0.3
    Preparing search index...

    Function unescapeHeader

    • Unescapes a STOMP 1.2 header key or value read from the wire.

      Reverses escapeHeader, turning the four escape sequences back into their literal characters. An unknown escape sequence is malformed and rejected.

      Parameters

      • s: string

        The escaped header key or value.

      Returns string

      The decoded literal string.

      If an unrecognized escape sequence is present.

      1.0.0

      import { unescapeHeader } from 'edgeport/stomp';

      unescapeHeader('a\\cb\\nc'); // 'a:b\nc'