socketio-nuxt

nuxt module for socket.io

Usage no npm install needed!

<script type="module">
  import socketioNuxt from 'https://cdn.skypack.dev/socketio-nuxt';
</script>

README

socketio-nuxt

npm version npm downloads Circle CI Codecov License

📖 Release Notes

Setup

  1. Add socketio-nuxt dependency to your project
yarn add socketio-nuxt # or npm install socketio-nuxt
  1. Add socketio-nuxt to the modules section of nuxt.config.js
{
  modules: [
    // Simple usage
    'socketio-nuxt',

    // With options
    ['socketio-nuxt', {
      autoConnect: false,
      url: 'http://localhost:9001'
    }]
  ]
}

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) therealwolf42