ReplaceDeviceRSocketController

@Controller
@MessageMapping(value = ["experimental.devices.{client}"])
class ReplaceDeviceRSocketController(protobufSerializer: ProtoBuf, replaceDeviceService: ReplaceDeviceService, serverStore: ServerStore)

Constructors

Link copied to clipboard
constructor(protobufSerializer: ProtoBuf, replaceDeviceService: ReplaceDeviceService, serverStore: ServerStore)

Functions

Link copied to clipboard
@MessageMapping(value = ["replace.master"])
suspend fun replaceMasterDevice(@Payload device: ByteArray, @DestinationVariable client: String): RSocketResponse

Replace master device request/response RSocket API. Takes as argument a ReplaceMasterDeviceRequest encoded in ProtoBuf format in payload. In metadata takes the client path as String.