MCPcopy Create free account
hub / github.com/apache/tvm / create_on_message

Function create_on_message

python/tvm/rpc/proxy.py:679–686  ·  view source on GitHub ↗
(conn)

Source from the content-addressed store, hash-verified

677 """
678
679 def create_on_message(conn):
680 def _fsend(data):
681 data = bytes(data)
682 conn.write_message(data, binary=True)
683 return len(data)
684
685 on_message = _ffi_api.CreateEventDrivenServer(_fsend, "WebSocketProxyServer", "%toinit")
686 return on_message
687
688 @gen.coroutine
689 def _connect(key):

Callers 1

_connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…