Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcardeenas committed Apr 10, 2020
2 parents b220526 + 267ec1f commit 446df14
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ create('sessionName', qrCallback, {
});
```

##### The type definition con be found in here: [CreateConfig.ts](https://github.com/danielcardeenas/sulla/blob/affd816d83cc065bf953c9cc5328d935e9fc04c8/src/config/create-config.ts)
##### The type definition con be found in here: [CreateConfig.ts](https://github.com/danielcardeenas/sulla/blob/master/src/config/create-config.ts)

## Exporting QR code

Expand Down Expand Up @@ -346,8 +346,15 @@ There are some tricks for a better usage of sulla.
```javascript
// In case of being logged out of whatsapp web
// Force it to keep the current session
// State change
client.onStateChange((state) => {
if (state === 'UNLAUNCHED') {
console.log(state);
const conflits = [
sulla.SocketState.CONFLICT,
sulla.SocketState.UNPAIRED,
sulla.SocketState.UNLAUNCHED,
];
if (conflits.includes(state)) {
client.useHere();
}
});
Expand Down
4 changes: 2 additions & 2 deletions UPDATES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Update checking

Whatsapp is in constant changes, in order to tackle this issue I suggest
Whatsapp is in constant change, in order to tackle this issue I suggest
keeping your sulla package always up-to-date.

The method/funciton names won't change, only their core algorithm. This way you won't have to makes changes in your code at every update. They will remain the same for ever.
The method/funciton names won't change, only their core algorithm. This way you won't have to makes changes in your code at every update. They will remain the same forever.
22 changes: 6 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 446df14

Please sign in to comment.