MCPcopy Create free account
hub / github.com/HumeAI/hume-api-examples / on_open

Method on_open

evi/evi-python-function-calling/main.py:94–96  ·  view source on GitHub ↗

Logic invoked when the WebSocket connection is opened.

(self)

Source from the content-addressed store, hash-verified

92 print(f"(Sent ToolResponseMessage for tool_call_id {tool_call_id}: {weather})\n")
93
94 async def on_open(self):
95 """Logic invoked when the WebSocket connection is opened."""
96 print("WebSocket connection opened.")
97
98 async def on_message(self, message: SubscribeEvent):
99 """Callback function to handle a WebSocket message event.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected