https post

This commit is contained in:
barwie2@st.amu.edu.pl 2020-03-08 22:30:14 +01:00
parent f3765ccbaa
commit 37e994d6d1
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
const WebSocket = require('ws');
var https = require('https');
const fs = require('fs');
var websocket_port = 8888;
const wss = new WebSocket.Server({port: websocket_port});

View File

@ -46,7 +46,7 @@
<script>
var classes_code_input = $('#classes_code_input').html();
const client = new WebSocket('wss://150.254.78.197:8888', classes_code_input);
const client = new WebSocket('wss://atcheck.projektstudencki.pl/wss', classes_code_input);
client.onmessage = function onmessage1(message) {
message = JSON.parse(message.data);