ProtocolAPI: Initialise RPCHandler after other members (#1722)

This commit is contained in:
Sapphire
2026-01-23 16:17:25 -06:00
committed by GitHub
parent 99de554c18
commit f0981bf709

View File

@@ -8,11 +8,10 @@ import solarxr_protocol.MessageBundle
import java.nio.ByteBuffer
class ProtocolAPI(val server: VRServer) {
val rpcHandler: RPCHandler = RPCHandler(this)
val apiServers: MutableList<ProtocolAPIServer> = ArrayList()
val dataFeedHandler: DataFeedHandler = DataFeedHandler(this)
val pubSubHandler: PubSubHandler = PubSubHandler(this)
val apiServers: MutableList<ProtocolAPIServer> = ArrayList()
val rpcHandler: RPCHandler = RPCHandler(this)
fun onMessage(conn: GenericConnection, message: ByteBuffer) {
val messageBundle = MessageBundle.getRootAsMessageBundle(message)