wssserver

command
v1.7.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL