Skip to content

Commit 4820ae9

Browse files
committed
fix: do not send "false" if stream is not store in the same instance
1 parent 68f41f2 commit 4820ae9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/transmit.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ export class Transmit {
195195
payload: { uid },
196196
})
197197

198-
return this.#storage.addChannelToStream(uid, channel)
198+
this.#storage.addChannelToStream(uid, channel)
199+
return true
199200
}
200201

201202
$unsubscribeFromChannel(uid: string, channel: string, ctx: HttpContext): boolean {
@@ -207,7 +208,8 @@ export class Transmit {
207208
payload: { uid },
208209
})
209210

210-
return this.#storage.removeChannelFromStream(uid, channel)
211+
this.#storage.removeChannelFromStream(uid, channel)
212+
return true
211213
}
212214

213215
#ping() {

0 commit comments

Comments
 (0)