Documentation
¶
Overview ¶
Command wssserver is the shared test fixture for the native SDK regression tests (#53; the same tool backs the C/C++/C# tests in their own PRs): a WebSocket server speaking the etunnel wire protocol with scripted scenarios. It is intentionally a single self-contained file so each SDK test dir can carry or reference it without a build step.
Modes:
welcome - accept, read hello, send one welcome, hold the socket open
sink - welcome, req+FIN, then read the client's res+DATA+FIN and report
bytes. Crucially it sends NOTHING further inbound, so it doubles
as the "silent server" for the Rust read-lock test: a client whose
reader blocks outbound sends can never deliver its res here.
trunc - welcome, req, then a binary DATA frame whose declared length
exceeds the actual payload (truncated frame). The client must
clamp instead of crashing, still answer the request, and survive.
-plain serves ws:// (no TLS): tests then need no certificate dance.