Socket.IO Socket.IO enables realtime bidirectional eventbased communication. It works on every platform, browser or device, focusing equally on reliability and speed.
Rooms/Namespaces Good Points Enabling specific clients to send events is very easy. (All room numbers or only specific members or ...) If one of features causes a fatal error, it doesn't affect other features. Codebase become structured and easy to read
vuexsocketioplugin https://github.com/joere/vuexsocketioplugin Inspired by VueSocket.io https://github.com/MetinSeylan/VueSocket.io Integrate Socket.IO events to vuex actions and mutations Support multi connections Map Socket.IO namespaces to Vuex module namespaces
It's very readable but it may feel a bit strange.. To update view we modify the state in the 'parent'. Child(socket) modules are mostly stateless. Thus children needs to modify the parent's state. It looks like antipattern. (but currently we have no problem, it's very limited situation...)