Closed Kudo closed 1 year ago
* Enable WebSocket only * Mirroring traffic with PubNub transport. For subscribers to get duplicated message, we should process only one of them. * ~^ So we need a messageId to SnackTransportMessage~ Update: we don't have a messageId. so to use JSON.stringify() and compare the whole string in current implementation. * ~^ Maybe we need to add metrics for message missed from SocketIoTransport but arrived from PubNubTransport~ Update: PubNub SDK doesn't expose this feature. We cannot have a similar metric from PubNub.
I'm removing myself as a review from this PR and if you and Cedric is comfortable moving forward with this, let's merge it. I left one comment as a suggestion about naming.
i'm going to merge this pr first as all review comments should be followed up and it's hard to maintain those stocked prs. if there's any other further comments, please let me know and i could do it in a separated pr.
also, this pr only touches snack-sdk, it should be safe to merge.
Why
close ENG-7101
pr series
👉 #376
377
378
379
380
381
How
createTransport
will createTransportImplPubNub
and newcreateSnackPubTransport
will createTrafficMirroringTransport
Test Plan