Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

I am not able to use this extension #2

Open
misrasuraj opened this issue Sep 20, 2016 · 2 comments
Open

I am not able to use this extension #2

misrasuraj opened this issue Sep 20, 2016 · 2 comments

Comments

@misrasuraj
Copy link

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

@misrasuraj
Copy link
Author

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.

@misrasuraj
Copy link
Author

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 free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant