protected function isWebsocketPushPacket($packet)
    {
        if (! is_array($packet)) {
            return false;
        }

        return $this->isWebsocket
            && array_key_exists('action', $packet)
            && $packet['action'] === Websocket::PUSH_ACTION;
    }
protected function isWebsocketPushPacket($packet)
    {
        if (! is_array($packet)) {
            return false;
        }

        return $this->isWebsocket
            && array_key_exists('action', $packet)
            && $packet['action'] === Websocket::PUSH_ACTION;
    }
protected function isWebsocketPushPacket ( $ packet ) { if ( ! is_array ( $ packet ) ) { return false ; } return $ this -> isWebsocket && array_key_exists ( 'action' , $ packet ) && $ packet [ 'action' ] === Websocket :: PUSH_ACTION ; }
Indicates if a packet is websocket push action.

@param mixed
Indicates if a packet is websocket push action .