mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-02 02:51:40 +00:00
Refactored client side with vue cli
This commit is contained in:
14
backend/app/handlers/SocketHandler.py
Normal file
14
backend/app/handlers/SocketHandler.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import tornado.websocket
|
||||
|
||||
|
||||
class ChameleonWebSocket(tornado.websocket.WebSocketHandler):
|
||||
def open(self):
|
||||
print("WebSocket opened")
|
||||
|
||||
def on_message(self, message):
|
||||
print(message)
|
||||
self.write_message("why the fuck did you send a message")
|
||||
|
||||
def on_close(self):
|
||||
print("WebSocket closed")
|
||||
|
||||
Reference in New Issue
Block a user