serverpod_live_server 0.1.1
serverpod_live_server: ^0.1.1 copied to clipboard
Durable real-time channels, commands, collections, and presence for Serverpod.
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.');
}