kytos-ng / ui

Kytos Admin UI
MIT License
0 stars 3 forks source link

Replace `socket.io` client with native browser `WebSocket` #42

Open viniarck opened 1 year ago

viniarck commented 1 year ago

Once https://github.com/kytos-ng/kytos/issues/347 lands, flask-socketio (Flask client for socket.io) won't be needed anymore since starlette natively support websockets, so in the front-end we can use a WebSocket that most browsers already have available without socket.io

viniarck commented 1 year ago

https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_client_applications