Skip to content

Instantly share code, notes, and snippets.

@pinkeshdarji
Created May 24, 2021 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinkeshdarji/96463f0493ec2e62d2860e8f596f26a1 to your computer and use it in GitHub Desktop.
Save pinkeshdarji/96463f0493ec2e62d2860e8f596f26a1 to your computer and use it in GitHub Desktop.
Future<void> main() async {
//Create stream clien
//Create users
//Create channels
//Step 1
final channel = client.channel(
"messaging",
id: "guitarist",
extraData: {
"name": "Guitarist",
"image": "https://source.unsplash.com/5HltXT-6Vgw",
"members": ['Jeffery', 'Jhon', 'Mike'],
},
);
//Step 2
await channel.watch();
runApp(MyApp(
client: client,
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment