Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf85fb82

Browse files
committed
relaypool: add send
1 parentc9b5a17 commitf85fb82

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎lib/relay-pool.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ RelayPool.prototype.has = function relayPoolHas(relayUrl) {
3838
returnfalse
3939
}
4040

41+
RelayPool.prototype.send=functionrelayPoolSend(payload,relay_ids){
42+
constrelays=relay_ids ?this.find_relays(relay_ids) :this.relays
43+
for(constrelayofrelays){
44+
relay.send(payload)
45+
}
46+
}
47+
4148
RelayPool.prototype.setupHandlers=functionrelayPoolSetupHandlers()
4249
{
4350
// setup its message handlers with the ones we have already

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp