mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-08 05:15:04 +00:00
23 lines
382 B
HTML
23 lines
382 B
HTML
Welcome to Embark!
|
|
|
|
<script>
|
|
var ws = new WebSocket("ws://localhost:8000/embark/logs");
|
|
|
|
ws.onopen = function() {
|
|
};
|
|
|
|
ws.onmessage = function (evt) {
|
|
var received_msg = evt.data;
|
|
console.log(received_msg);
|
|
};
|
|
|
|
ws.onclose = function() {
|
|
console.log("Connection is closed...");
|
|
};
|
|
|
|
window.onbeforeunload = function(event) {
|
|
ws.close();
|
|
};
|
|
</script>
|
|
|