|
@@ -442,6 +442,7 @@ class Collab extends PureComponent<Props, CollabState> {
|
|
|
);
|
|
|
|
|
|
const fallbackInitializationHandler = () => {
|
|
|
+ console.log("fallbackInitializationHandler");
|
|
|
this.initializeRoom({
|
|
|
roomLinkData: existingRoomLinkData,
|
|
|
fetchScene: true,
|
|
@@ -516,7 +517,9 @@ class Collab extends PureComponent<Props, CollabState> {
|
|
|
case WS_SUBTYPES.INVALID_RESPONSE:
|
|
|
return;
|
|
|
case WS_SUBTYPES.INIT: {
|
|
|
+ console.log("INIT (1)");
|
|
|
if (!this.portal.socketInitialized) {
|
|
|
+ console.log("INIT (2)");
|
|
|
this.initializeRoom({ fetchScene: false });
|
|
|
const remoteElements = decryptedData.payload.elements;
|
|
|
const reconciledElements = this.reconcileElements(remoteElements);
|
|
@@ -606,6 +609,7 @@ class Collab extends PureComponent<Props, CollabState> {
|
|
|
);
|
|
|
|
|
|
this.portal.socket.on("first-in-room", async () => {
|
|
|
+ console.log("first-in-room");
|
|
|
if (this.portal.socket) {
|
|
|
this.portal.socket.off("first-in-room");
|
|
|
}
|