You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.
Hi,
As per sales force streaming doc, it is following the comet 2.3.1 but this code extends Adapter class which is not in this version. I have updated my code and changed it to ClientSession.Extension.
To set the option for replayid , I have done as below at client side before handshake:
Map replayMap = new HashMap();
replayMap.put("ReplayFrom",36);
client.addExtension(new CometDReplayExtension(replayMap));
I was expecting that after getting conenct, I should be able to get the events from replyId 36 onwards but still I am only getting new events generated and not from replyId 36.
The extension file which I updated is also attached. please see the file.
I updated the streaming code to be compatible with the provided extension version but it is still not working.It is still showing the events with are currently being updated as client code is connected and not showing the past 24 hours events based on the replayid.
After updating the code as above mention, It was not working because of the key that I was using for extension to send the replayid. Now things are working fine.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
As per sales force streaming doc, it is following the comet 2.3.1 but this code extends Adapter class which is not in this version. I have updated my code and changed it to ClientSession.Extension.
To set the option for replayid , I have done as below at client side before handshake:
Map replayMap = new HashMap();
replayMap.put("ReplayFrom",36);
client.addExtension(new CometDReplayExtension(replayMap));
I was expecting that after getting conenct, I should be able to get the events from replyId 36 onwards but still I am only getting new events generated and not from replyId 36.
The extension file which I updated is also attached. please see the file.
Could you please help me how to use this extension.
CometDReplayExtension.txt
The text was updated successfully, but these errors were encountered: