ruby-mqtt icon indicating copy to clipboard operation
ruby-mqtt copied to clipboard

[Discuss] Publishing method return nil.

Open NSLog0 opened this issue 6 years ago • 3 comments

I'm wondering about the publish () should return response status like a success, error or there are the other way to get response if it have sorry for that I can't find in the document

NSLog0 avatar May 02 '18 01:05 NSLog0

publish() doesn't return anything meaningful but will throw an exception if it fails.

It also doesn't currently wait for PUBACK.

njh avatar May 08 '18 11:05 njh

Thank you @njh, Are you still maintain the library?

Anyway, Do you have an example about best practice of implementation and thread implementation. I've planed to use this on ruby on rail but I need to find some example to determine get() or get_packet won't blocks other of application process

NSLog0 avatar May 10 '18 10:05 NSLog0

Sorry, I am not sure what you mean in your last comment.

Did you manage to resolve your problem?

njh avatar Mar 09 '20 18:03 njh