Disable realtime or auto refresh in Doctypes

Hi Guys

I have a tough problem:
I need to disable the auto refresh that is executed from socket.io to list records from the different doctype’s. In this particular case I want to disable specific doctype’s and not affect others.

Description:

This api is updated periodically, it should block the call.

Any help would be appreciated!

1 Like

hello and welcome, you can close the whole connection with:
frappe.socketio.socket.close() or if you want to disable certain events you can use frappe.realtime.off(“doc_update”) or use “list_update” event name for the doctype list

1 Like

Disable auto refresh in List Settings