Wrote /root/JavaX-Caches/tmp_190642671/main.java - 1285 bytes (written=1285, should be 1285)
javac=0, ecj=1, useJarBot=0
Checking ECJ at port 4898 at 127.0.0.1
/root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_348829643 /root/JavaX-Caches/tmp_190642671/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_190642671/main.java:1: error: class, interface, or enum expected
sS hInitSecondaryWebSocket(O... _) {
^
/root/JavaX-Caches/tmp_190642671/main.java:3: error: class, interface, or enum expected
optPar S url;
^
/root/JavaX-Caches/tmp_190642671/main.java:4: error: class, interface, or enum expected
if (empty(url)) fail("Need URL for secondary websocket");
^
/root/JavaX-Caches/tmp_190642671/main.java:5: error: class, interface, or enum expected
optPar S onOpen;
^
/root/JavaX-Caches/tmp_190642671/main.java:6: error: class, interface, or enum expected
optPar S onMessage;
^
/root/JavaX-Caches/tmp_190642671/main.java:7: error: class, interface, or enum expected
optPar S readyMsg = "WebSocket 2 ready!";
^
/root/JavaX-Caches/tmp_190642671/main.java:8: error: class, interface, or enum expected
ret hreconnectingWebSockets()
^
/root/JavaX-Caches/tmp_190642671/main.java:11: error: class, interface, or enum expected
var ws2InitialMsgs = [];
^
/root/JavaX-Caches/tmp_190642671/main.java:12: error: class, interface, or enum expected
var ws2Verbose = false;
^
/root/JavaX-Caches/tmp_190642671/main.java:13: error: class, interface, or enum expected
var ]] + wsVar + [[ = new ReconnectingWebSocket(]] + jsQuote(url) + [[);
^
/root/JavaX-Caches/tmp_190642671/main.java:15: error: class, interface, or enum expected
]] + wsVar + [[.onopen = function(event) {
^
/root/JavaX-Caches/tmp_190642671/main.java:17: error: class, interface, or enum expected
console.log(]] + jsQuote(readyMsg) + [[);
^
/root/JavaX-Caches/tmp_190642671/main.java:18: error: class, interface, or enum expected
ws2InitialMsgs.forEach(function(msg) {
^
/root/JavaX-Caches/tmp_190642671/main.java:20: error: class, interface, or enum expected
ws2.send(msg);
^
/root/JavaX-Caches/tmp_190642671/main.java:21: error: class, interface, or enum expected
});
^
/root/JavaX-Caches/tmp_190642671/main.java:22: error: class, interface, or enum expected
]] + jsDropTrailingComments(onOpen) + [[ };
^
/root/JavaX-Caches/tmp_190642671/main.java:24: error: class, interface, or enum expected
]] + wsVar + [[.onmessage = function(event) {
^
/root/JavaX-Caches/tmp_190642671/main.java:30: error: class, interface, or enum expected
function ws2InitialMsg(msg) {
^
/root/JavaX-Caches/tmp_190642671/main.java:32: error: class, interface, or enum expected
if (ws2Ready) {
^
/root/JavaX-Caches/tmp_190642671/main.java:34: error: class, interface, or enum expected
ws2.send(msg);
^
/root/JavaX-Caches/tmp_190642671/main.java:35: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_190642671/main.java:38: error: class, interface, or enum expected
}
^
22 errors