centrifugal / centrifuge-dart

Dart (Flutter) client SDK for bidirectional communication with Centrifugo and Centrifuge-based server over WebSocket

Home Page:https://pub.dartlang.org/packages/centrifuge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A few more examples

opened this issue · comments

At the moment the demo works :)
I got it working after a few hours. Great stuff and well abstracted.

But i think that we should add an example that is little more data driven so its easier to play around with Centrifuge.

Use this as a basis.
https://github.com/magicwave/mws_mqtt_client
which currently uses: https://github.com/shamblett/mqtt_client
Its for MQTT but is a good example.

It shows the server connected, and allows you to connect.
Screenshot 2019-04-08 at 09 43 38

It allows you to make new channels / topics, so you can play around.
Screenshot 2019-04-08 at 09 43 53

It allows you to test putting data into those channels and see it coming back.

Screenshot 2019-04-08 at 09 44 22

Maybe add login - it does not have it yet.


Then it would be good to add a few examples to really show off how powerful centrifuge can be !

Maybe we should host here ?

I can start on the following below:

  1. A Classic Chat app example.

https://github.com/amsokol/flutter-grpc-tutorial

  • At the moment it uses GRPC and so i just have to replace that with the centrifuge-dart calls.
  1. A real time document collaboration.

https://github.com/memspace/zefyr

zefyr-1

  • It has a real time update mechanism based on Quill Delta and so we can tap into that. There is golang code so we can add that to the golang examples to work in tandem with the Dart code.
  • Will add many user cursors later. Just like you see in Google docs.
  1. A Cal App is a good example also
  • So peoples cals stay in sync on their many devices.

@gedw99 I suppose everyone will be happy if you add one or more well crafted examples.

fixed by @synw via #32