Baileys
Baileys copied to clipboard
[BUG] Property 'call' does not exist on type 'void'.
Describe the bug
When installing the package locally to update, the error below appears regarding WebSocket. I corrected the error, removing the sendPromise
variable, and calling ws.send
, inside the sendRawMessage
function, so as not to have more errors.
Error:
Solution:
To Reproduce Steps to reproduce the behavior:
- Git clone
- Yarn install
try changing the line:
const sendPromise = promisify<void>(ws.send)
to:
const sendPromise = promisify<ArrayBufferLike>(ws.send)