Crate jamsocket_server[][src]

Structs

Represents a request to reserve a client ID and return it. Client IDs are unique only in the context of a room.

Represents a connection from a service to a client, which consists of a message receiver and a user ID.

Represents a message sent to one or more clients from the server.

Actor model representation of a “room”. A room is a set of clients that share an instance of a Jamsocket instance. Conceptually, this is like a room in a chat service. Events (such as messages) and their side-effects are isolated to the room in which they occur.

Settings used by the server.

A JamsocketContext implementation for JamsocketServices hosted in the context of a [ServiceActor].

Generates short, upper-case alphabetical IDs of a given length.

Factory for creating a [ShortRoomIdGenerator].

Assigns a user ID from a UUID.

Enums

Represents a message or event initiated by a client.

Determines how new rooms are assigned an id.

Determines how a server will behave when a room is empty (all clients have left).

Traits

Trait for objects capable of generating a user ID.