-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed Namespaces, Fixed Backend & Refactored Code
- Loading branch information
1 parent
88bbdc8
commit f2a0e3d
Showing
47 changed files
with
377 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 0 additions & 27 deletions
27
code/client/src/services/communication/socket/namespaces/documentNamespace.ts
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
code/client/src/services/communication/socket/namespaces/namespaces.ts
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
code/client/src/services/communication/socket/namespaces/utils.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
import { SocketHandler } from '@controllers/ws/types'; | ||
import { DocumentsService } from '@services/DocumentsService'; | ||
import onOperation from '@controllers/ws/namespaces/document/onOperation'; | ||
import onCursorChange from '@controllers/ws/namespaces/document/onCursorChange'; | ||
import onJoinDocument from '@controllers/ws/namespaces/document/onJoinDocument'; | ||
import onLeaveDocument from '@controllers/ws/namespaces/document/onLeaveDocument'; | ||
import onJoinWorkspace from '@controllers/ws/namespaces/workspace/onJoinWorkspace'; | ||
import onLeaveWorkspace from '@controllers/ws/namespaces/workspace/onLeaveWorkspace'; | ||
import onOperation from '@controllers/ws/events/document/onOperation'; | ||
import onCursorChange from '@controllers/ws/events/document/onCursorChange'; | ||
import onJoinDocument from '@controllers/ws/events/document/onJoinDocument'; | ||
import onLeaveDocument from '@controllers/ws/events/document/onLeaveDocument'; | ||
import onJoinWorkspace from '@controllers/ws/events/workspace/onJoinWorkspace'; | ||
import onLeaveWorkspace from '@controllers/ws/events/workspace/onLeaveWorkspace'; | ||
|
||
export default function events(service: DocumentsService): Record<string, Record<string, SocketHandler>> { | ||
export default function events(service: DocumentsService): Record<string, SocketHandler> { | ||
if (!service) throw new Error('Service parameter is required'); | ||
|
||
return { | ||
'/document': { | ||
operation: onOperation(service), | ||
cursor: onCursorChange(), | ||
join: onJoinDocument(), | ||
leave: onLeaveDocument(), | ||
}, | ||
'/workspaces': { | ||
join: onJoinWorkspace(), | ||
leave: onLeaveWorkspace(), | ||
}, | ||
'/users': {}, | ||
// document events | ||
operation: onOperation(service), | ||
cursorChange: onCursorChange(), | ||
joinDocument: onJoinDocument(), | ||
leaveDocument: onLeaveDocument(), | ||
|
||
// workspace events | ||
joinWorkspace: onJoinWorkspace(), | ||
leaveWorkspace: onLeaveWorkspace(), | ||
}; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.