Documentation
¶
Overview ¶
Package devgw serves maild's RPC over a WebSocket on loopback, so the UI can be developed in an ordinary browser against a real maild (docs/design/app.md, Dev and test). maild serves it only with -devgw. Browsers do not apply CORS to WebSockets, so every connection must carry the token and come from an allowed Origin.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotLoopback = errors.New("devgw: listen address must be loopback")
ErrNotLoopback means the gateway was asked to listen beyond this machine.
var Origins = []string{"http://127.0.0.1:5173", "http://localhost:5173"}
Origins are the pages allowed to connect: the Vite dev server.
Functions ¶
Types ¶
This section is empty.