Skip to Content
← Back to all demos

Message Interceptor Patterns

Intercept, modify, or handle messages before they reach the backend

Custom responsesMessage enrichmentConditional routingError handling

Select a Pattern

The Message Interceptor API allows you to intercept, modify, or handle messages before they reach the Nexus backend. Click each pattern below to see it in action.

1

No Interceptor

Default behavior, all messages go to Nexus

2

Custom Response

Handle all messages locally, no backend calls

3

Message Enrichment

Add metadata before sending to backend

4

Conditional Routing

Route messages based on content

5

Error Handling

Demonstrate timeout and error scenarios

Note: Open your browser console (F12) to see detailed logs of interceptor execution.