-
-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Description
If script.handle_message is not called, script.exports.call will hang indefinitely.
From the source code, this is because RPC calls use the same IPC channel as send, and the entire IPC message handler is registered only when a custom handler is set via handle_message. Therefore, without setting a custom handler, the call method can't receive RPC responses and just waiting forever.
I am not certain whether the current API design intentionally works this way, but I find it somewhat counterintuitive.
I performed a comparative test using the Python binding: in Python, RPC calls work normally even without calling script.on("message", on_message).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels