sendCreationFailed method
- Channel channel,
- 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,
);
}