original_string: public function isWebsocketPushPayload($payload): bool
      {
          if (! is_array($payload)) {
              return false;
          }
  
          return $this->isServerWebsocket
              && ($payload['action'] ?? null) === Websocket::PUSH_ACTION
              && array_key_exists('data', $payload);
      }
code: public function isWebsocketPushPayload($payload): bool
      {
          if (! is_array($payload)) {
              return false;
          }
  
          return $this->isServerWebsocket
              && ($payload['action'] ?? null) === Websocket::PUSH_ACTION
              && array_key_exists('data', $payload);
      }
code_tokens: public function isWebsocketPushPayload ( $ payload ) : bool { if ( ! is_array ( $ payload ) ) { return false ; } return $ this -> isServerWebsocket && ( $ payload [ 'action' ] ?? null ) === Websocket :: PUSH_ACTION && array_key_exists ( 'data' , $ payload ) ; }
docstring: Indicates if the payload is websocket push.
  
  @param mixed $payload
  
  @return boolean
docstring_tokens: Indicates if the payload is websocket push .