mirror of
https://github.com/lammertb/libhttp.git
synced 2025-08-07 16:02:55 +03:00
Websocket test should support WSS
This commit is contained in:
@@ -2,7 +2,7 @@ timerID = "timeout"
|
|||||||
--timerID = "interval"
|
--timerID = "interval"
|
||||||
|
|
||||||
function trace(text)
|
function trace(text)
|
||||||
local f = io.open("R:\\websocket.trace", "a")
|
local f = io.open("websocket.trace", "a")
|
||||||
f:write(os.date() .. " - " .. text .. "\n")
|
f:write(os.date() .. " - " .. text .. "\n")
|
||||||
f:close()
|
f:close()
|
||||||
end
|
end
|
||||||
|
@@ -29,7 +29,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function load() {
|
function load() {
|
||||||
connection = new WebSocket("ws://" + window.location.host + "/websocket.lua");
|
var wsproto = (location.protocol === 'https:') ? "wss:" : "ws:";
|
||||||
|
connection = new WebSocket(wsproto + "//" + window.location.host + "/websocket.lua");
|
||||||
websock_text_field = document.getElementById('websock_text_field');
|
websock_text_field = document.getElementById('websock_text_field');
|
||||||
hand_min = document.getElementById('hand_min');
|
hand_min = document.getElementById('hand_min');
|
||||||
hand_hour = document.getElementById('hand_hour');
|
hand_hour = document.getElementById('hand_hour');
|
||||||
|
Reference in New Issue
Block a user