Skip to content

Open-source and local-first Slack and Notion alternative that puts you in control of your data

323 B
Raw Blame
import { FastifyPluginCallback } from 'fastify';

import { socketInitHandler } from './socket-init';
import { socketOpenHandler } from './socket-open';

export const socketRoutes: FastifyPluginCallback = (instance, _, done) => {
  instance.register(socketInitHandler);
  instance.register(socketOpenHandler);

  done();
};