@guivic/fastify-socket.io
v0.1.3
Published
Fastify socket.io plugin.
Downloads
101
Readme
@guivic/fastify-socket.io
Installation
npm install @guivic/fastify-socket.io --save
yarn add @guivic/fastify-socket.io
Usage
Per default Socket.io will listen on your server address.
fastify.register(require('@guivic/fastify-socket.io'), options, (error) => console.error(error));
fastify.get('/', (request, reply) => {
console.log(fastify.io) // Socket.io instance
});
Options
Socket.io configuration object.
https://socket.io/docs/server-api
Author
Ludovic Lérus from Guivic
License
Licensed under MIT.