Open
Description
The websocket impl (platform/view/services/comm/host/rest/websocket) may deserve additional love and refactoring to improve readability, maintainability, performance, and resource consumption.
A few avenues for improvements are mentioned in #909.
Potential improvements:
- Avoid usage of mutexes and prefer channels
- Replace JSON with some more efficient scheme for channel multiplexing messaging
- Reduce code complexity
- Easier cleanup
- ...