Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
7.4.0
-
None
Description
On the server I'm calling this method
org.apache.wicket.protocol.ws.api.IWebSocketConnection.sendMessage(byte[] message, int offset, int length)
The Wicket javascript client code (wicket-websocket-jquery.js) assumes the incoming message is a string and attempts to detect if it's an ajax response.
self.ws.onmessage = function (event) {
var message = event.data;
if (message && message.indexOf('<ajax-response>') > -1)
else
{ Wicket.Event.publish(topics.Message, message); }};