예제 #1
0
 /**
  * Send contents of the given stream as binary message.
  * 
  * @param ReadableStream $stream Source of data to be sent (will be closed after all bytes have been consumed).
  * @param int $priority Message priority.
  * @return int Number of transmitted bytes.
  */
 public function sendBinary(ReadableStream $stream, int $priority = 0) : Awaitable
 {
     return $this->writer->sendBinary($stream, $priority);
 }