WebSocket support for Fastify. Built upon websocket-stream.
'use strict'
const fastify = require('fastify')()
fastify.register(require('fastify-websocket'), { handle })
function handle (conn) {
conn.pipe(conn) // creates a echo server
}
fastify.listen(0)
- Support Hooks?
This project is kindly sponsored by nearForm.
Licensed under MIT.