mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-05 22:54:25 +01:00
relay: respect "local: true" filter
This commit is contained in:
@@ -66,8 +66,8 @@ function trackRelays(event: Event) {
|
||||
}
|
||||
|
||||
/** Distribute the event through active subscriptions. */
|
||||
function streamOut(event: Event) {
|
||||
for (const sub of Sub.matches(event)) {
|
||||
async function streamOut(event: Event) {
|
||||
for await (const sub of Sub.matches(event)) {
|
||||
sub.socket.send(JSON.stringify(['EVENT', event]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user