Baileys icon indicating copy to clipboard operation
Baileys copied to clipboard

[BUG] Property 'call' does not exist on type 'void'.

Open moskoweb opened this issue 1 year ago • 1 comments

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: Captura de Tela 2023-05-19 às 15 45 31

Solution: Captura de Tela 2023-05-19 às 15 47 22

To Reproduce Steps to reproduce the behavior:

  1. Git clone
  2. Yarn install

moskoweb avatar May 19 '23 18:05 moskoweb

try changing the line:

const sendPromise = promisify<void>(ws.send)

to:

const sendPromise = promisify<ArrayBufferLike>(ws.send)

barkerpedro avatar May 25 '23 05:05 barkerpedro