bd163732d8c83ad9c643f319d648cccf6dbc185b,lib/streamlit/proxy/ClientWebSocket.py,ClientWebSocket,on_message,#ClientWebSocket#Any#,58
Before Change
// @Proxy.stop_proxy_on_exception
def on_message(self, msg):
Run callback for websocket messages.
data = json.loads(msg)
payload = json.dumps(data)
self.write_message(payload, binary=False)
LOGGER.debug("Sent payload "{}"".format(payload))
"""
try:
After Change
os.system("python -m streamlit help &")
elif command == protobuf.BackMsg.Command.Value("CLOUD_UPLOAD"):
LOGGER.debug("CLOUD_UPLOAD!!!")
yield self._save_cloud(connection, ws)
else:
LOGGER.warning("no handler for %s",
protobuf.BackMsg.Command.Name(backend_msg.command))
except Exception as e:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: streamlit/streamlit
Commit Name: bd163732d8c83ad9c643f319d648cccf6dbc185b
Time: 2018-06-18
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/proxy/ClientWebSocket.py
Class Name: ClientWebSocket
Method Name: on_message
Project Name: ray-project/ray
Commit Name: edbb2937d393f9cd95a5016bc2df5250bbd59152
Time: 2021-01-23
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_object_spilling.py
Class Name:
Method Name: object_spilling_config
Project Name: chakki-works/doccano
Commit Name: 49d41416e440926f0a9a8243b4d77f6f5468efe9
Time: 2019-03-12
Author: light.tree.1.13@gmail.com
File Name: app/server/utils.py
Class Name: JsonHandler
Method Name: parse