0.1.3 • Published 3 years ago

@guivic/fastify-socket.io v0.1.3

Weekly downloads
29
License
MIT
Repository
github
Last release
3 years ago

@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.

0.1.3

3 years ago

0.1.2

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago