dt><span class="returnLabel">Returns:</span></dt>
<dd>The JavaScript event handler function that is invoked when a push message is received from the server.</dd>
</dl>
</li>
</ul>
<a id="setOnmessage(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setOnmessage</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setOnmessage&#8203;(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html?is-external=true" title="class or interface i