serverpod_live_server 0.1.1 copy "serverpod_live_server: ^0.1.1" to clipboard
serverpod_live_server: ^0.1.1 copied to clipboard

Durable real-time channels, commands, collections, and presence for Serverpod.

example/main.dart

import 'package:serverpod/serverpod.dart';
import 'package:serverpod_live_server/serverpod_live_server.dart';

/// Creates Serverpod Live during the host application's startup.
LiveServer configureLive(Serverpod pod) {
  return LiveServer.initialize(
    pod,
    authorize: (session, channel) async {
      // Replace this with the application's team-membership lookup.
      return channel.startsWith('team:');
    },
  );
}

void main() {
  print('Call configureLive(pod) while starting your Serverpod application.');
}
0
likes
160
points
8
downloads

Documentation

API reference

Publisher

verified publishersumitgohil.com

Weekly Downloads

Durable real-time channels, commands, collections, and presence for Serverpod.

Repository (GitHub)
View/report issues

Topics

#serverpod #realtime #collaboration

License

Apache-2.0 (license)

Dependencies

serverpod

More

Packages that depend on serverpod_live_server