client.registerSession destroy after page reload

client.registerSession({ userId, authToken }) automatcally destroy after page reload.
How to store it to call repository after page reload?

Hello, please see how to handle this in this sample project GitHub - AmityCo/Amity-Web-SDK-pagination-example

Is there any way for realtime in rest api using node?

Please refer to this link and let us know if this is what you are looking for?

Is there any way to store client.registration data into session or else, so that we don’t want to call this function on every page reload

Unfortunately, no, there isn’t.

Ok. one more queries, we have tried realtime event subscription using js-sdk, but it’s not working

The one I provided you Webhook Events - Amity Docs is a different service, it’s webhook - if you would like to give it a try, please let me know. We will have to enable it for you.

How to call all socket url?

If I call using curl then showing
“status”: “error”,
“message”: “Not found”,
“code”: 500000,
“data”: {}

We would recommend you to use Amity API instead of sockets, since we will deprecate them soon.