Open Source API Gateway

wsStompReassembler

Version

Runs plugins on STOMP over WebSocket. Every text message, in either direction, is parsed as a STOMP frame and passed to the nested plugins as a request: the STOMP command is the method, the STOMP headers are the header fields. Their changes are written back into the message. A plugin that ends the flow drops the message. Other messages pass unchanged.

Example Configuration

api:
port: 2000
flow:
- webSocket:
flow:
- wsStompReassembler:
flow:
- setHeader:
name: x-gateway
value: membrane
target:
host: localhost
port: 61614
api:
   port: 2000
   flow:
     - webSocket:
         flow:
           - wsStompReassembler:
               flow:
                 - setHeader:
                     name: x-gateway
                     value: membrane
   target:
     host: localhost
     port: 61614

Syntax

wsStompReassembler:
'$ref': <string>
flow:
- <flow>
wsStompReassembler:
  '$ref': <string>
  flow:
    - <flow>

Attributes

NameRequiredDefaultDescriptionExamples
$reffalse-Reference a component defined under components.-

Child Structure

ElementCardinalityDescription
flow0..*Plugins applied to each STOMP frame, as to a request.

Can be used in