diff --git a/code/client/src/editor/crdt/fugue.ts b/code/client/src/editor/crdt/fugue.ts index 6c659796..3c1c55ae 100644 --- a/code/client/src/editor/crdt/fugue.ts +++ b/code/client/src/editor/crdt/fugue.ts @@ -7,7 +7,7 @@ import { type Node, type Id } from '@notespace/shared/crdt/types/nodes'; import { type Style } from '@notespace/shared/crdt/types/styles'; import { FugueTree } from '@notespace/shared/crdt/FugueTree'; import { generateReplicaId } from './utils'; -import { socket } from '@src/socket.io/socket'; +import { socket } from '@src/socket/socket'; import { type InsertNode } from '@editor/crdt/types'; import { Cursor, Selection } from '@editor/slate.js/model/cursor'; import { isEmpty, isEqual } from 'lodash'; diff --git a/code/server/src/controllers/websocket/events.ts b/code/server/src/controllers/websocket/events.ts index adf5d2c2..2e9db459 100644 --- a/code/server/src/controllers/websocket/events.ts +++ b/code/server/src/controllers/websocket/events.ts @@ -1,5 +1,5 @@ -import onOperation from '@controllers/socket.io/document/onOperation'; -import onCursorChange from '@controllers/socket.io/document/onCursorChange'; +import onOperation from '@controllers/websocket/document/onOperation'; +import onCursorChange from '@controllers/websocket/document/onCursorChange'; import { DocumentService, SocketHandler } from '@src/types'; export default function events(service: DocumentService): Record { diff --git a/code/server/src/server.ts b/code/server/src/server.ts index 253f430a..d32437d5 100644 --- a/code/server/src/server.ts +++ b/code/server/src/server.ts @@ -4,10 +4,10 @@ import { Server } from 'socket.io'; import { config } from 'dotenv'; import cors from 'cors'; import serviceInit from '@services/documentService'; -import eventsInit from '@controllers/socket.io/events'; +import eventsInit from '@controllers/websocket/events'; import database from '@database/memory/operations'; import router from '@src/controllers/http/router'; -import onConnection from '@controllers/socket.io/onConnection'; +import onConnection from '@controllers/websocket/onConnection'; config(); const PORT = process.env.PORT || 8080;