mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 02:07:07 +00:00
15 lines
360 B
TypeScript
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)
|
|
}
|
|
})
|