12 lines
381 B
TypeScript
12 lines
381 B
TypeScript
import { BaseSocket } from "./websocket"
|
|
import authorized from "../middleware/authorized"
|
|
import http from "http"
|
|
import Koa from "koa"
|
|
import { permissions } from "@budibase/backend-core"
|
|
|
|
export default class ClientAppWebsocket extends BaseSocket {
|
|
constructor(app: Koa, server: http.Server) {
|
|
super(app, server, "/socket/client", [authorized(permissions.BUILDER)])
|
|
}
|
|
}
|