You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constaccount={name: "Gijo Varghese"};writer.publish('account-updated',account);// works finewriter.deferPublish('account-updated',account,1000);// ERROR - Expect an array of messages to produceMessageswriter.deferPublish('account-updated',[account],1000);// ERROR - The "list[2]" argument must be one of type Array, Buffer, or Uint8Array. Received type objectwriter.deferPublish('account-updated',[JSON.stringify(account)],1000);// works!
From the docs:
deferPublish(topic, msg, timeMs, [callback])
topic is a string. msg is either a string, a Buffer, JSON serializable object. timeMs is the delay by which the message should be delivered. callback takes a single error argument.
Is it a bug?
The text was updated successfully, but these errors were encountered:
From the docs:
Is it a bug?
The text was updated successfully, but these errors were encountered: