Skip to content

Commit d0e1afa

Browse files
committed
.\README.md
1 parent 6834fcd commit d0e1afa

1 file changed

Lines changed: 22 additions & 1 deletion

File tree

src/websocket/Readme.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,25 @@ socket("messages.upsert", (msg, event) => {
110110
socket("qrcode.updated", (msg, event) => {
111111
console.log(msg)
112112
})
113-
```
113+
```
114+
115+
---
116+
117+
## Tipos de evento
118+
119+
| Name | Event | TypeData | Description |
120+
| --------------------------- | --------------------------- | -------- | ------------------------------------------------------------------------------------- |
121+
| QRCODE\_UPDATED | `qrcode.updated` | JSON | Sends the base64 of the QR code for reading |
122+
| CONNECTION\_UPDATE | `connection.update` | JSON | Informs the status of the connection with WhatsApp |
123+
| MESSAGES\_UPSERT | `messages.upsert` | JSON | Notifies you when a message is received |
124+
| MESSAGES\_UPDATE | `messages.update` | JSON | Tells you when a message is updated |
125+
| SEND\_MESSAGE | `send.message` | JSON | Notifies when a message is sent |
126+
| CONTACTS\_UPSERT | `contacts.upsert` | JSON | Reloads all contacts with additional information<br>This event occurs only once |
127+
| CONTACTS\_UPDATE | `contacts.update` | JSON | Informs you when a contact is updated |
128+
| PRESENCE\_UPDATE | `presence.update` | JSON | Informs if the user is online, typing, recording, or last seen<br>`unavailable` `available` `composing` `recording` `paused`|
129+
| CHATS\_UPDATE | `chats.update` | JSON | Informs you when the chat is updated |
130+
| CHATS\_UPSERT | `chats.upsert` | JSON | Sends any new chat information |
131+
| GROUPS\_UPSERT | `groups.upsert` | JSON | Notifies when a group is created |
132+
| GROUPS\_UPDATE | `groups.update` | JSON | Notifies when a group has its information updated |
133+
| GROUP\_PARTICIPANTS\_UPDATE | `group-participants.update` | JSON | Notifies when an action occurs involving a participant<br>`add` `remove` `promote` `demote`|
134+
| CALL\_UPSERT | `call.upsert` | JSON | Notifies when there is a new call event |

0 commit comments

Comments
 (0)