Skip to main content

magic_socket 1.0.0 copy "magic_socket: ^1.0.0" to clipboard
magic_socket: ^1.0.0 copied to clipboard

Real-time broadcasting for Magic apps: the Echo facade, Reverb and null drivers, private and presence channels.

Changelog #

All notable changes to this project will be documented in this file.

[Unreleased] #

1.0.0 - 2026-11-14 #

Added #

  • First release. Real-time broadcasting for Magic apps, moved out of magic core 1.0.0.
  • Echo facade: public, private and presence channels over a Laravel Reverb (Pusher protocol) websocket, automatic reconnection, connection state and reconnect streams, and message interceptors.
  • A null driver and Echo.fake (with package:magic_socket/testing.dart) so the same code runs and tests without a server.
  • BroadcastServiceProvider, the broadcastingConfig config factory, the ListensToBroadcasts controller mixin, BroadcastListeners and AuthChannelSubscription.
  • SocketIdInterceptor, which adds X-Socket-ID to Http requests so Laravel's toOthers() skips the sending device.
  • A dowel plugin provider (MagicSocketDowelProvider) that dart run magic:dowel plugin:install magic_socket registers.
  • Built on web_socket_channel ^3.0.3 and dowel ^1.0.0. Requires Dart 3.13, Flutter 3.47 and magic ^1.0.0.
0
likes
160
points
0
downloads

Documentation

API reference

Publisher

verified publisheranilcancakir.com

Weekly Downloads

Real-time broadcasting for Magic apps: the Echo facade, Reverb and null drivers, private and presence channels.

Homepage
Repository (GitHub)
View/report issues

Topics

#websocket #realtime #broadcasting #magic

License

MIT (license)

Dependencies

dowel, flutter, magic, web_socket_channel

More

Packages that depend on magic_socket