Giter VIP home page Giter VIP logo

rocket.chat.dart.sdk's People

Contributors

facundomedica avatar haoguo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rocket.chat.dart.sdk's Issues

Repo maintenance?

Hi there! Thanks for your pub!

We've been using it for quite awhile now, adding many improvements and fixing a few things to match latests Rocket.Chat versions.

If you'd like to we can set-up a big PR to your repo and review it.
We also could maintain an updated repo on our own.

If you wanna see your work or if others want to use it, it's around here: https://github.com/OwnWeb/Rocket.Chat.Dart.SDK/tree/fixed

Cheers! ๐Ÿป

Need await on ddp connect

Hi, thank you very much for this work.
I tried to use your realtime Client, as is, but when I create a new Client, as I saw on your test example
Client client = Client(..., true);
and then I try to login

client.login(UserCredentials()
      ..name = 'admin'
      ..password = 'admin');

I get an error saying ddp is null
To fix this I had to extract the connection bloc of code from the Client constructor and put this lines in a new async method

void connect({String wsUrl, bool logOrNot: false}) async {
    this._ddp = await ddp.DdpClient("", wsUrl, "");
    await this._ddp.connect();
    await this._ddp.setSocketLogActive(logOrNot);
  }

then call this new connection method with an await prefix

Am I misusing your code? Or should it be corrected?

Thx

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.