privateChannel method

  1. @override
SocketIoPrivateChannel privateChannel(
  1. String name
)
override

Get a private channel instance by name.

Implementation

@override
SocketIoPrivateChannel privateChannel(String name) {
  if (channels['private-$name'] == null) {
    channels['private-$name'] = SocketIoPrivateChannel(
      socket,
      'private-$name',
      options,
    );
  }

  return channels['private-$name'] as SocketIoPrivateChannel;
}