n java.lang" class="externalLink">String</a>&nbsp;onmessage)</pre>
<div class="block">Sets the JavaScript event handler function that is invoked when a push message is received from the server. The
 function will be invoked with three arguments: the push message, the channel name and the raw MessageEvent itself.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>onmessage</code> - The JavaScript event handler function that is invoked when a push message is received from the
 server.</