-
|
Beta Was this translation helpful? Give feedback.
Answered by
ra1u
Mar 8, 2022
Replies: 1 comment 3 replies
-
First command you send should be auth. conn.connectSecure(<args>).than((Command command){
command.send_object(["AUTH","username","password"])
.then((var response) {
print(response);
command.send_object(["SET","token","value]).then(
(var response) => print(response));
});
}); Or equivalently using async Command command = await conn.connectSecure(<args>);
var rsp_auth = await command.send_object(["AUTH","username","password"]);
print(rsp_auth);
var rsp_token = await command.send_object((["SET","token","value]));
print(rsp_token); I did not compile this, so let me know how this works for you. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Gabsop
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First command you send should be auth.
Or equivalently using async
I did not compile this, so let me know how this works for you.