sendToChannel method

void sendToChannel(
  1. Channel channel,
  2. Uint8List data
)

Sends data to channel.

Implementation

void sendToChannel(Channel channel, Uint8List data) {
  writeCipher(MSG_CHANNEL_DATA(channel.remoteId, data));
  channel.windowC -= (data.length - 4);
}