Server (trio)

The trio API is experimental.

Please provide feedback in GitHub issues about the API, especially if you can propose a more intuitive or convenient way to start and stop a server.

Creating a server

unix_serve is not available in the Trio implementation.

This is because Trio does not provide open_unix_listeners yet. Instead, you can create Trio listeners using Unix domain sockets then call serve() with a listeners arguments.

Routing connections

unix_route is not available in the Trio implementation.

This is because unix_serve isn’t available either, as explained above.

Running a server

Using a connection

Broadcast

HTTP Basic Authentication

websockets supports HTTP Basic Authentication according to RFC 7235 and RFC 7617.