Closed SimonVillage closed 3 years ago
Could you please check out https://github.com/centrifugal/centrifuge-dart/pull/54 ?
I applied the changes locally but it doesn't seem like that it works. It returns this right now:
SubscribeSuccessEvent{isResubscribed: false, isRecovered: false, data: [] }
I also changed to this
String toString() {
return 'SubscribeSuccessEvent{isResubscribed: $isResubscribed, isRecovered: $isRecovered, data: ${utf8.decode(data, allowMalformed: true)}}';
}
A response like this should be fine right?
{
result: {
data: { test: 1 },
},
}
Sorry, the bug in a server – fixed by https://github.com/centrifugal/centrifugo/commit/fc07520fabe25026a98e85f00b69a4a4ab6ac7ae – will be available in next Centrifugo release.
Released both Centrifugo v3.0.3 and centrifuge-dart v0.7.1 – returning data
from subscribe proxy must be proxied towards data
field of SubscribeSuccessEvent
.
Hi,
I am trying to implement
proxy_subscribe_endpoint
. The endpoint gets called on my backend on subscribe, I return a message like this:However, on the
subscribeSuccessStream
event I only receiveSubscribeSuccessEvent{isResubscribed: false, isRecovered: false}
Is this functionality implemented already? I am trying to respond to the subscribing user with some initial user information.