We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When automatic JSON conversion is enabled, one would want to use the publish function like
publish
const mymessage = { a: 1, b: "2"}; nats.publish("mysubject", mymessage);
However, the current Typescript signatures of the publish function do not support this:
publish(callback: Function):void; publish(subject: string, callback: Function):void; publish(subject: string, msg: string | Buffer, callback: Function):void; publish(subject: string, msg?: string | Buffer, reply?: string, callback?: Function):void;
Instead, they should be
publish(callback: Function):void; publish(subject: string, callback: Function):void; publish(subject: string, msg: string | Buffer | object, callback: Function):void; publish(subject: string, msg?: string | Buffer | object, reply?: string, callback?: Function):void;
The text was updated successfully, but these errors were encountered:
70a055d
No branches or pull requests
When automatic JSON conversion is enabled, one would want to use the
publish
function likeHowever, the current Typescript signatures of the publish function do not support this:
Instead, they should be
The text was updated successfully, but these errors were encountered: