liveroom 1.0.7 liveroom: ^1.0.7 copied to clipboard
Super simple WebSocket Room kit
https://pub.dev/packages/liveroom
LiveRoom, Super-Simple WebSocket Room kit #
1. Server #
- setup Deno (Official Manual)
### Mac
$ curl -fsSL https://deno.land/x/install/install.sh | sh
### Windows powershell
$ irm https://deno.land/install.ps1 | iex
- run quick server
$ deno run --allow-net https://deno.land/x/liveroom/quick.ts
2. Flutter App #
import 'package:flutter/material.dart';
import 'package:liveroom/liveroom.dart';
void main() {
runApp(LiveroomQuickApp());
}
simple interfaces
final liveroom = Liveroom();
- liveroom.create(roomId: '0001');
- liveroom.join(roomId: '0001');
- liveroom.send(message: 'Hello');
- liveroom.receive((userId, message) {});
- liveroom.exit();
🎉 any issues, requests, contributions are welcomed!