Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/OpenBMB/ChatDev
/ _encode_ws_message
Function
_encode_ws_message
server/services/websocket_manager.py:35–38 ·
view source on GitHub ↗
(message: Any)
Source
from the content-addressed store, hash-verified
33
34
35
def
_encode_ws_message(message: Any) -> str:
36
if
isinstance(message, str):
37
return
message
38
return
json.dumps(message, default=_json_default)
39
40
41
class
WebSocketManager:
Callers
1
send_message
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected