Graphorin API reference v0.8.0
Graphorin API reference / @graphorin/channels / / sanitizeChannelInbound
Function: sanitizeChannelInbound()
ts
function sanitizeChannelInbound(body, options): SanitizationOutcome;Defined in: packages/channels/src/inbound.ts:48
Sanitize one inbound channel message body. Thin wrapper over applyInboundSanitization with trustClass: 'channel-inbound'; exists so every gateway (and adapter test) applies the identical boundary with one call.
Parameters
| Parameter | Type |
|---|---|
body | string |
options | SanitizeChannelInboundOptions |