Decouple client from server
Add Vite dependency and remove server side rendering to make it
possible to run the client independently.
Remove webpack config, replace with the `Vite` build tool.
GitLab: #55
Change-Id: I3a05d2e86cf6cb0ab91e77b3696f393132137575
diff --git a/common/src/Conversation.ts b/common/src/Conversation.ts
index 01b70cd..7b55de9 100644
--- a/common/src/Conversation.ts
+++ b/common/src/Conversation.ts
@@ -15,10 +15,8 @@
* License along with this program. If not, see
* <https://www.gnu.org/licenses/>.
*/
-import { Socket } from 'socket.io';
-
import { Contact } from './Contact.js';
-import { PromiseExecutor, Session } from './util.js';
+import { PromiseExecutor } from './util.js';
export interface ConversationMember {
contact: Contact;
@@ -33,8 +31,8 @@
type ConversationListeners = Record<
string,
{
- socket: Socket;
- session: Session;
+ socket: any; // TODO: Improve typing
+ session: any;
}
>;