Jump to content

onMessage()


Recommended Posts

Posted

 

If i'd like to capture when i recieve for example willog logs, is this the correct code to use?

 

public void onMessage(String message) throws InterruptedException{
    if(message.contains("logs")){
    amountOfLogs++;
     }
}
 
i saw it this way in some other guides but it doesnt work

 

 

This was the old API method in case you were wondering why it didn't work. Message is the new param.

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...