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);
    }
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);
    }
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 ) ; }
Indicates if the payload is websocket push.

@param mixed $payload

@return boolean
Indicates if the payload is websocket push .