This commit is contained in:
2026-03-08 00:01:31 +01:00
parent 643de642a1
commit c4ee5b0394
16 changed files with 221 additions and 73 deletions

View File

@@ -1,5 +1,6 @@
import { SignalRService } from '@/services/signalr.ts'
import type { Arrow, Line, MoveShapeCommand, Rectangle, TextShape, Whiteboard } from '@/types/whiteboard.ts'
import type {User} from "@/types";
const client = new SignalRService(`/hubs/whiteboard`)
@@ -80,8 +81,8 @@ export const whiteboardHubService = {
client.on<string>('WaitingForApproval', callback)
},
onUserWaitingForApproval(callback: (userId: string) => void) {
client.on<string>('UserWaitingForApproval', callback)
onUserWaitingForApproval(callback: (user: User) => void) {
client.on<User>('UserWaitingForApproval', callback)
},
onAccepted(callback: () => void) {