original_string: public function push($payload): void
      {
          // attach sender if not broadcast
          if (! $this->broadcast && $this->sender && ! $this->hasDescriptor($this->sender)) {
              $this->addDescriptor($this->sender);
          }
  
          // check if to broadcast to other clients
          if ($this->shouldBroadcast()) {
              $this->addDescriptors($this->getWebsocketConnections());
          }
  
          // push message to designated fds
          foreach ($this->descriptors as $descriptor) {
              if ($this->shouldPushToDescriptor($descriptor)) {
                  $this->server->push($descriptor, $payload, $this->opcode);
              }
          }
      }
code: public function push($payload): void
      {
          // attach sender if not broadcast
          if (! $this->broadcast && $this->sender && ! $this->hasDescriptor($this->sender)) {
              $this->addDescriptor($this->sender);
          }
  
          // check if to broadcast to other clients
          if ($this->shouldBroadcast()) {
              $this->addDescriptors($this->getWebsocketConnections());
          }
  
          // push message to designated fds
          foreach ($this->descriptors as $descriptor) {
              if ($this->shouldPushToDescriptor($descriptor)) {
                  $this->server->push($descriptor, $payload, $this->opcode);
              }
          }
      }
code_tokens: public function push ( $ payload ) : void { // attach sender if not broadcast if ( ! $ this -> broadcast && $ this -> sender && ! $ this -> hasDescriptor ( $ this -> sender ) ) { $ this -> addDescriptor ( $ this -> sender ) ; } // check if to broadcast to other clients if ( $ this -> shouldBroadcast ( ) ) { $ this -> addDescriptors ( $ this -> getWebsocketConnections ( ) ) ; } // push message to designated fds foreach ( $ this -> descriptors as $ descriptor ) { if ( $ this -> shouldPushToDescriptor ( $ descriptor ) ) { $ this -> server -> push ( $ descriptor , $ payload , $ this -> opcode ) ; } } }
docstring: Push message to related descriptors
  
  @param mixed $payload
  
  @return void
docstring_tokens: Push message to related descriptors