Nuxt/examples/with-sockets/README.md
2020-11-30 23:44:04 +01:00

659 B

Nuxt with Socket.io

An example for Nuxt with WebSockets over Socket.io.

Socket.IO enables real-time, bidirectional and event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed.

  • 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