Nuxt -- client and server module for Nuxt


Configuration of multiple IO sockets
Configuration of per-socket namespaces
Automatic IO Server Registration
Socket IO Status
Automatic Error Handling
Debug logging, enabled with localStorage item 'debug' set to 'nuxt-socket-io'
Automatic Teardown, enabled by default
$nuxtSocket vuex module and socket persistence in vuex
Support for dynamic APIs using the KISS API format
Support for the IO config in the new Nuxt runtime config (for Nuxt versions >= 2.13)
Automatic middleware registration
ES module
Promisified emit and once methods (socket.emitP and socket.onceP in 2.x+)


Several demos can be found here

These docs will attempt to explain and be in sync with the examples shown there.

Online playground

Play with the code sandbox as you read the docs.