diff --git a/gui/app/src/hooks/websocket-api.ts b/gui/app/src/hooks/websocket-api.ts index fa5745274..f287d4b36 100644 --- a/gui/app/src/hooks/websocket-api.ts +++ b/gui/app/src/hooks/websocket-api.ts @@ -25,7 +25,7 @@ import { boneRegistryAtom } from '@/store/app-store'; import { bodyPartOfKey } from '@/utils/body-part'; // Must match SOLARXR_PROTOCOL_VERSION in server/core/.../solarxr/protocol.kt -const SOLARXR_PROTOCOL_VERSION = 3; +const SOLARXR_PROTOCOL_VERSION = 2; type ConnectionPhase = 'awaiting-hello' | 'configuring' | 'ready'; diff --git a/server/core/src/main/java/dev/slimevr/solarxr/inbound.kt b/server/core/src/main/java/dev/slimevr/solarxr/inbound.kt index 5ae87f2f5..ce6927f86 100644 --- a/server/core/src/main/java/dev/slimevr/solarxr/inbound.kt +++ b/server/core/src/main/java/dev/slimevr/solarxr/inbound.kt @@ -8,7 +8,7 @@ suspend fun onSolarXRMessage(message: MessageBundle, context: SolarXRBridge) { val wasReady = context.isReady message.connectionMsgs?.forEach { header -> onConnectionMessage(header.message, context) } if (!wasReady) { - if (message.dataFeedMsgs != null || message.rpcMsgs != null || message.driverMsgs != null) { + if (!message.dataFeedMsgs.isNullOrEmpty() || !message.rpcMsgs.isNullOrEmpty() || !message.driverMsgs.isNullOrEmpty()) { context.sendConnectionMessage(ConnectionError(message = "Configuration has not completed", data = InitializationRequiredError())) } return