Files
nocodb/packages/nc-gui/plugins/a.socket.ts
DarkPhoenix2704 6c8b6e7e85 feat: presence
2026-03-02 10:54:43 +00:00

15 lines
360 B
TypeScript

export default defineNuxtPlugin(async (nuxtApp) => {
if (!isEeUI) {
const ncSocket = {
id: () => null,
onMessage: (..._args: any[]) => null,
offMessage: (..._args: any[]) => null,
emit: (..._args: any[]) => undefined,
on:
(..._args: any[]) =>
() => {},
}
nuxtApp.provide('ncSocket', ncSocket)
}
})