haoguo / rocket.chat.dart.sdk Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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! ๐ป
Please provide a proper documentation.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.