SuperViz Real-time
SuperViz Real-time is a powerful package that enables real-time communication and collaboration in Dart-based applications. It provides a simple yet flexible API for creating channels, publishing events, and subscribing to real-time updates.
Features
- Easy integration with Flutter projects
- Real-time communication between participants
- Flexible event publishing and subscription system
- Support for both package manager and CDN installation methods
Example
import 'package:superviz_realtime/superviz_realtime.dart';
// Initialize Real-time
final realtime = Realtime(
RealtimeAuthenticationParams(
clientId: 'CLIENT_ID',
secret: 'SECRET_KEY',
),
RealtimeEnvironmentParams(
participant: Participant(
id: 'PARTICIPANT_ID',
),
// Optional parameter (default value: false):
debug: false,
),
);
// Connect to a channel
final channel = await realtime.connect("my-channel");
// Publish an event
channel.publish<Map<String, String>>("test", { 'message': "Hello world!" });
// Subscribe to events
channel.subscribe<Map<String, String>>("test", (event) {
print("Received test event: ${event.data['message']}");
});
Documentation
For more detailed information on how to use SuperViz Real-time, please refer to our official documentation.
Getting Started
To start using SuperViz Real-time, you'll need to create an account to retrieve your Developer Key or Client ID and Secret.
Support
If you have any questions or need assistance, please join our Discord community or open an issue on our GitHub repository.
License
SuperViz Real-Time is licensed under the BSD 2-Clause License.