Fixed Issue #3 & updated Version

This commit is contained in:
MarcTheDev committed 2023-08-22 21:08:47 +02:00
1 parent 4d28dcb23b
commit 799668b83e
2 files changed
+6 -2

No files matched your search

+5 -1
View File
@@ -11,7 +11,11 @@ export class SubscriptionManager {
constructor(accessToken: string) {
this._accessToken = accessToken;
this._subscriptions = {} as Record<keyof ClientEvents, ((...args: any) => void)[]>;
this._subscriptions = {
entryCreated: [],
entryDeleted: [],
entryUpdated: []
} as Record<keyof ClientEvents, ((...args: any) => void)[]>;
this._hubConnection = new signalR.HubConnectionBuilder()
.withUrl("https://ws.marcsync.dev/websocket?access_token=Bearer " + accessToken, {
skipNegotiation: true,