We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01666e6 commit f039836Copy full SHA for f039836
peerprep/components/questionpage/CollabEditor.tsx
@@ -213,6 +213,7 @@ export default function CollabEditor({
213
setOtherUserConnected(true);
214
setLastPingReceived(Date.now());
215
}
216
+ break;
217
default:
218
const exhaustiveCheck: never = msgType;
219
console.error("Unknown message type:", exhaustiveCheck);
@@ -246,7 +247,7 @@ export default function CollabEditor({
246
247
if (socket) {
248
console.log("PINGING WS FROM " + userId);
249
const msg: Message = {
- type: "ping",
250
+ type: MessageTypes.PING.valueOf(),
251
data: "pinging",
252
userId: userId,
253
};
0 commit comments