HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulevortex-ws-0.2.1GHC2024

Vortex.Ws.Door

The door a public websocket needs, in front of a host's sessions: a socket systemd holds (or one bound here), a handshake within a deadline from a page the settings name, a session slot for the door and for the peer, and frames held to a size with compression off. The peer is the connecting address, or behind a proxy its X-Real-IP, with an IPv6 address counted by its /64. Its settings are a vortex program (Vortex.Ws.Door.Settings), settled ahead of time and read back here.

Contents
  1. Where the door listens
  2. Serving
  3. Settings
Synopsis
  • Packagevortex-ws-0.2.1
  • Exports10
  • LanguageGHC2024
  • LicenceBSD-3-Clause
  • SourceDoor.hs

Where the door listens

The one listening socket systemd hands over; anything else is a mistake in the unit, and fails.

Serving

datadata Behind

Where a connection's peer is read from.

Constructors

  • BehindProxy

    The proxy's X-Real-IP; a connection without one is the peer proxy.

  • Direct

    The connecting address.

Instances2Eq, Show
  • Eq BehindDefined in vortex-ws-0.2.1 · Vortex.Ws.Door
  • Show BehindDefined in vortex-ws-0.2.1 · Vortex.Ws.Door

Settings