Nuxt/examples/with-sockets
Clark Du 52a92fbc48 refactor: use PascalCase for components names (#4396) 2018-11-24 22:19:19 +03:30
..
io refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30
pages refactor: use PascalCase for components names (#4396) 2018-11-24 22:19:19 +03:30
plugins
README.md
nuxt.config.js
package.json
server.js

README.md

Nuxt.js with Socket.io

An example for Nuxt.js with WebSockets over Sockets.io.

  • Do you use Nuxt programmatically (eg. with Express or Koa)? Take a look into server.js for setting up WS with your implementation

  • In case you use Nuxt standalone, check out nuxt.config.js and the io-module

  • In both situations you should look into the index.vue where sending and receiving messages is done