!7
html {
int port = subBot_currentPort();
ret "Computator."
+ hSilentComputator(
(subBot_isHttps() ? "wss://" : "ws://") + domain()
+ (port == 80 ? "" : ":" + port) + "/" + parsedProgramID());
}
static void onNewWebSocket(O ws, S uri) {
print("New web socket!");
call(ws, 'send, "alert('hello')");
}
static void onWebSocketMessage(O ws, S msg) {
print("Got message: " + msg);
}
static void onWebSocketClosed(O ws) {
print("Closed web socket");
}