We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 383d2b4 commit 863337dCopy full SHA for 863337d
lib/realtime/realtimeClientConnection.ts
@@ -6,6 +6,7 @@ import {Socket} from "socket.io";
6
import config from "../config";
7
import {Note} from "../models";
8
import {logger} from "../logger";
9
+import {RealtimeUserData} from "./realtime";
10
11
export type CursorData = Record<string, string>
12
@@ -81,7 +82,7 @@ export class RealtimeClientConnection {
81
82
return availablePermission
83
}
84
- getCurrentUser() {
85
+ getCurrentUser(): RealtimeUserData {
86
if (!this.socket.id) return
87
return this.realtime.getUserFromUserPool(this.socket.id)
88
0 commit comments