mirror of https://github.com/waku-org/js-waku.git
refact: move default value to function signature
This commit is contained in:
parent
5eec4564fe
commit
a58691aabd
|
@ -215,12 +215,12 @@ export class Nwaku {
|
||||||
|
|
||||||
async sendMessage(
|
async sendMessage(
|
||||||
message: WakuRelayMessage,
|
message: WakuRelayMessage,
|
||||||
pubSubTopic?: string
|
pubSubTopic: string = DefaultPubSubTopic
|
||||||
): Promise<boolean> {
|
): Promise<boolean> {
|
||||||
this.checkProcess();
|
this.checkProcess();
|
||||||
|
|
||||||
return this.rpcCall<boolean>("post_waku_v2_relay_v1_message", [
|
return this.rpcCall<boolean>("post_waku_v2_relay_v1_message", [
|
||||||
pubSubTopic ? pubSubTopic : DefaultPubSubTopic,
|
pubSubTopic,
|
||||||
message,
|
message,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue