Add webRTC handlers

- Bind webRCT callbacks from socket
- Handle incoming account message for webRTC

GitLab: #53
Change-Id: I4ed28e7ca41e8e3870968819c75ffad249a188d0
diff --git a/common/src/enums/websocket-message-type.ts b/common/src/enums/websocket-message-type.ts
index 9f95d60..4337d3a 100644
--- a/common/src/enums/websocket-message-type.ts
+++ b/common/src/enums/websocket-message-type.ts
@@ -17,5 +17,5 @@
  */
 export enum WebSocketMessageType {
   WebRTCOffer = 'webrtc-offer',
-  WebRCTAnswer = 'webrtc-answer',
+  WebRTCAnswer = 'webrtc-answer',
 }
diff --git a/common/src/index.ts b/common/src/index.ts
index 8dbab24..e6c2b2c 100644
--- a/common/src/index.ts
+++ b/common/src/index.ts
@@ -21,5 +21,6 @@
 export * from './Conversation.js';
 export * from './enums/http-status-code.js';
 export * from './enums/websocket-message-type.js';
+export * from './interfaces/account-text-message.js';
 export * from './interfaces/websocket-message.js';
 export * from './util.js';
diff --git a/common/src/interfaces/account-text-message.ts b/common/src/interfaces/account-text-message.ts
new file mode 100644
index 0000000..d8f52ec
--- /dev/null
+++ b/common/src/interfaces/account-text-message.ts
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2022 Savoir-faire Linux Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation; either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public
+ * License along with this program.  If not, see
+ * <https://www.gnu.org/licenses/>.
+ */
+export interface AccountTextMessage {
+  from: string;
+  to: string;
+  message: JSON;
+}
diff --git a/common/src/interfaces/websocket-message.ts b/common/src/interfaces/websocket-message.ts
index f42b67b..efc412e 100644
--- a/common/src/interfaces/websocket-message.ts
+++ b/common/src/interfaces/websocket-message.ts
@@ -16,8 +16,9 @@
  * <https://www.gnu.org/licenses/>.
  */
 import { WebSocketMessageType } from '../enums/websocket-message-type';
+import { AccountTextMessage } from './account-text-message';
 
 export interface WebSocketMessage {
   type: WebSocketMessageType;
-  data: any;
+  data: AccountTextMessage; // Union type for data (Ex: data: AccountTextMessage | SomethingElse)
 }