Add class instantiation in readme.

This commit is contained in:
Dessalines 2022-12-11 10:22:52 -05:00
parent 60c5c85cd7
commit fae96e319c

View file

@ -25,10 +25,10 @@ import { Login, LemmyWebsocket } from 'lemmy-js-client';
let client: LemmyWebsocket = new LemmyWebsocket();
let form: Login {
let form = new Login({
username_or_email: "my_email@email.tld",
password: "my_pass",
};
});
this.ws.send(client.login(form));
```