Ejemplo n.º 1
0
 /**
  * Send a message to a specific node/connection.
  *
  * @param   string            $message    Message.
  * @param   \Hoa\Socket\Node  $node       Node (if null, current node).
  * @param   int               $opcode     Opcode.
  * @param   bool              $end        Whether it is the last frame of
  *                                        the message.
  * @return  void
  */
 public function send($message, Socket\Node $node = null, $opcode = self::OPCODE_TEXT_FRAME, $end = true)
 {
     $send = parent::send($message, $node);
     if (null === $send) {
         return null;
     }
     return $send($opcode, $end);
 }