Open Source API Gateway

wsLog

Version

Logs every WebSocket message and its direction at level INFO.

Example Configuration

api:
port: 2000
flow:
- webSocket:
flow:
- wsLog:
encoding: HEX
target:
host: localhost
port: 8080
api:
   port: 2000
   flow:
     - webSocket:
         flow:
           - wsLog:
               encoding: HEX
   target:
     host: localhost
     port: 8080

Syntax

wsLog:
encoding: raw
wsLog:
  encoding: raw

Attributes

NameRequiredDefaultDescriptionExamples
encodingfalseRAWHow the payload is logged: RAW as text, HEX as a hex dump next to its printable characters.HEX

Can be used in