Skip to content

How send inital message (not replay)? #2

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");
   });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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