RegisterRSocketController

@Controller
@MessageMapping(value = ["v1.accounts.{client}"])
class RegisterRSocketController(registrationService: RegistrationService, protobufSerializer: ProtoBuf, serverStore: ServerStore)

Constructors

Link copied to clipboard
constructor(registrationService: RegistrationService, protobufSerializer: ProtoBuf, serverStore: ServerStore)

Functions

Link copied to clipboard
@MessageMapping(value = ["register"])
suspend fun registerAccount(@Payload account: ByteArray, @DestinationVariable client: String): RSocketResponse

Register Account request/response RSocket API. Takes as argument an RegisterAccount encoded in ProtoBuf format in payload. In metadata takes the client path as String.

Link copied to clipboard
@MessageMapping(value = ["register-non-signal"])
suspend fun registerNonSignalCompliantAccount(@Payload account: ByteArray, @DestinationVariable client: String): RSocketResponse

Same as registerAccount above, with the exception that the account's identity key is set as NON_SIGNAL_COMPLIANT. It is not needed (nor supported) to set keys after this call.