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.
The escaped header key or value.
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' Copy
import { unescapeHeader } from 'edgeport/stomp';unescapeHeader('a\\cb\\nc'); // 'a:b\nc'
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.