budibase/packages/server/src/websockets/index.ts

18 lines
504 B
TypeScript
Raw Normal View History

import http from "http"
import Koa from "koa"
import ClientAppSocket from "./client"
2023-05-16 15:18:31 +02:00
import GridSocket from "./grid"
import BuilderSocket from "./builder"
let clientAppSocket: ClientAppSocket
let gridSocket: GridSocket
2023-05-16 15:18:31 +02:00
let builderSocket: BuilderSocket
export const initialise = (app: Koa, server: http.Server) => {
clientAppSocket = new ClientAppSocket(app, server)
gridSocket = new GridSocket(app, server)
2023-05-16 15:18:31 +02:00
builderSocket = new BuilderSocket(app, server)
}
export { clientAppSocket, gridSocket }