sendCreationFailed method

void sendCreationFailed(
  1. Channel channel,
  2. CreationFailedReason reason
)

Sends a room creation failure to channel.

Implementation

void sendCreationFailed(Channel channel, CreationFailedReason reason) {
  final builder = BytesBuilder();
  builder.addByte(reason.value);
  sendMessage(
    RpcNetworkerPacket.named(
      name: SwampEvent.roomCreationFailed,
      data: builder.toBytes(),
    ),
    channel,
  );
}