{% deprecated 'The "@GosWebSocket/Collector/websocket.html.twig" template is deprecated and will be removed in GosWebSocketBundle 4.0.' %} {% extends '@WebProfiler/Profiler/layout.html.twig' %} {% block toolbar %} {% if collector.pushTotal %} {% set icon %} {{ include('@GosWebSocket/Collector/icon.svg') }} {{ collector.pushTotal }} {% endset %} {% set text %}
Pushes {{ collector.pushTotal }}
Duration {{ '%0.2f'|format(collector.totalDuration) }} ms
{% endset %} {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: true }) }} {% endif %} {% endblock %} {% block menu %} {{ include('@GosWebSocket/Collector/icon.svg') }} Websocket {% endblock %} {% block panel %}

Websocket Pushes

{% if collector.pushTotal == 0 %}

No messages were pushed.

{% else %}
{{ collector.pushTotal }} Total Pushes
{{ '%0.2f'|format(collector.totalDuration) }} ms Duration
{% if collector.durations|length %}

Push Durations

{% for pusher, duration in collector.durations %}
{{ '%0.2f'|format(duration) }} ms {{ pusher|upper }} ({{ collector.pusherCounts[pusher] }})
{% endfor %}
{% endif %} {% endif %} {% endblock %}