Fixes - Deadlock when running WebSocket JavaScript tests.
Now the data is sent asynchronously, so the sender thread never block
and will allow other threads to run actions in the JavaScript thread.
@@ -77,7 +77,7 @@ public class WebSocketConnection extends ScriptableObject implements WebSocketLi
if (logger.isDebugEnabled()) {
logger.debug("WebSocket sending data {}", data);
}
- session.getRemote().sendString(data);
+ session.getRemote().sendString(data, null);
}
} catch (final Throwable x) {
// This method is invoked from JavaScript, so we must fail asynchronously
