Doubt How can i call js function from py in a doctype

how can i call a js function from py file in doctype… like need to call function in policy.js from a policy.py :grin:

check this if it helps

https://frappeframework.com/docs/v14/user/en/api/realtime