@guivic/fastify-socket.io

0.1.3 • Public • Published

@guivic/fastify-socket.io

dependencies status dev-dependencies status Node.js CI

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.

Package Sidebar

Install

npm i @guivic/fastify-socket.io

Weekly Downloads

15

Version

0.1.3

License

MIT

Unpacked Size

7.73 kB

Total Files

18

Last publish

Collaborators

  • guillaume-g
  • lludol