Closed Bill0106 closed 10 months ago
I find that the auth method only sends the message and does not provide a method to retrieve the response, whether it's OK or not.
auth
OK
I have some REQ messages that need to be sent after authorization. How can I use the auth method correctly to receive the OK response?
REQ
Indeed I wanted to make auth() return a Promise like publish(), but I forgot.
auth()
publish()
I find that the
auth
method only sends the message and does not provide a method to retrieve the response, whether it'sOK
or not.I have some
REQ
messages that need to be sent after authorization. How can I use theauth
method correctly to receive theOK
response?