Skip to content

How send inital message (not replay)? #2

@SadhuRus

Description

@SadhuRus

Thank you for this work!

I want to ask, how do I send a message as soon as I started the node script? (Do not wait for an answer)

   //This is Not work:
  connection._executeCommand("msg","Name","TestOfExecute");

  // This work if we reseave message (do execute forever. Why not once?)
   connection.on('message', message => {
       connection._executeCommand("msg","Name","TestOfExecute");
   });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions