.dpws / Flow DSL language reference

`.dpws` is DevPeek’s WebSocket Mock config format: indented text for multi-turn dialogs on a live connection. This reference is split by topic—pick a chapter from the sidebar. Each page starts with user-facing guidance, then the normative details.

Spec revision 1.3.3 · Preferred extension .dpws

For when to use WebSocket Mock in DevPeek and a quick start, see WebSocket Mock guide.

What this reference covers

When writing `.dpws` you usually need three kinds of answers:

  • **How to write**: file headers, conditions, returns, scope, @loop, and related syntax.
  • **How matching works**: same-frame chained replies, when `!~auth` applies, what happens on no match.
  • **How to fix errors**: what to change when validate reports E00x / W00x.