thoth_realtime 0.1.0 copy "thoth_realtime: ^0.1.0" to clipboard
thoth_realtime: ^0.1.0 copied to clipboard

A self-hosted Pusher Protocol WebSocket server for Maat applications.

Thoth Realtime #

Thoth icon

Thoth is a self-hosted Pusher Protocol v7 WebSocket and HTTP server for Dart. It works with the official pusher-js client and uses Maat for channel authorization and signed server broadcasts.

dart pub add thoth_realtime
import 'package:thoth_realtime/thoth_realtime.dart';
final app = await Application.configure(basePath: Directory.current.path)
    .withConfig({'thoth': thoth})
    .withProviders([ThothServiceProvider.new])
    .create();

final sesh = Sesh(
  app,
  commands: [ThothStartCommand(), ThothPingCommand()],
);
maat thoth:start --host=0.0.0.0 --port=6001
maat thoth:ping --host=127.0.0.1 --port=6001

The first release supports public, private, and presence subscriptions, server broadcasts, optional client events, ping/pong activity checks, channel inspection, connection limits, and graceful shutdown. State is held in one process; run one Thoth instance until a shared registry is added.

See the packaged WebSockets guide for configuration, pusher-js, Supervisor, nginx, TLS, and monitoring examples.

0
likes
150
points
--
downloads

Documentation

API reference

Publisher

verified publishergaitco.com

Weekly Downloads

A self-hosted Pusher Protocol WebSocket server for Maat applications.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

crypto, maat, shelf, web_socket_channel

More

Packages that depend on thoth_realtime