ViewParam This sample demonstrates how to push data using GET instead of POST via view parameters. The value of "data" request parameter in uri is consumed by a view param and pushed using a preRenderView event.
    <f:viewParam name="data" value="#{}" />
    <f:event type="preRenderView" listener="#{viewParamPush.prerender}" />

<h:outputText id="out" value="#{}" style="font-size:16px" />

<p:socket onMessage="handleMessage" channel="/viewparam" />

<script type="text/javascript">
        function handleMessage(data) {
PrimeTek, Copyright © 2017
All rights reserved.
Running PrimeFaces-6.2-SNAPSHOT on Mojarra-2.3.2.