channel method

  1. @override
SocketIoChannel channel(
  1. String name
)
override

Get a channel instance by name.

Implementation

@override
SocketIoChannel channel(String name) {
  if (channels[name] == null) {
    channels[name] = SocketIoChannel(socket, name, options);
  }

  return channels[name] as SocketIoChannel;
}