mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Fix typo: onMessageRecieved -> onMessageReceived (#652)
Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
@@ -306,7 +306,7 @@ export const makeSocket = (config: SocketConfig) => {
|
||||
}
|
||||
}
|
||||
|
||||
const onMessageRecieved = (data: Buffer) => {
|
||||
const onMessageReceived = (data: Buffer) => {
|
||||
noise.decodeFrame(data, frame => {
|
||||
// reset ping timeout
|
||||
lastDateRecv = new Date()
|
||||
@@ -565,7 +565,8 @@ export const makeSocket = (config: SocketConfig) => {
|
||||
})
|
||||
}
|
||||
|
||||
ws.on('message', onMessageRecieved)
|
||||
ws.on('message', onMessageReceived)
|
||||
|
||||
ws.on('open', async() => {
|
||||
try {
|
||||
await validateConnection()
|
||||
|
||||
Reference in New Issue
Block a user