https post
This commit is contained in:
parent
391ed435b9
commit
d61db9e56e
@ -39,7 +39,6 @@ var server = http.createServer(function (request, response) {
|
|||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
response.end("Undefined request .");
|
response.end("Undefined request .");
|
||||||
|
@ -47,7 +47,9 @@
|
|||||||
<script>
|
<script>
|
||||||
var classes_code_input = $('#classes_code_input').html();
|
var classes_code_input = $('#classes_code_input').html();
|
||||||
const client = new WebSocket('wss://atcheck.projektstudencki.pl/wss', classes_code_input);
|
const client = new WebSocket('wss://atcheck.projektstudencki.pl/wss', classes_code_input);
|
||||||
|
client.onclose = function(event) {
|
||||||
|
console.log("WebSocket is closed now.");
|
||||||
|
};
|
||||||
client.onmessage = function onmessage1(message) {
|
client.onmessage = function onmessage1(message) {
|
||||||
message = JSON.parse(message.data);
|
message = JSON.parse(message.data);
|
||||||
if (message.type = "data") {
|
if (message.type = "data") {
|
||||||
|
Loading…
Reference in New Issue
Block a user