better client for friends
This commit is contained in:
@@ -107,7 +107,7 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
}
|
||||
|
||||
// create a websocket
|
||||
socket = new WebSocket("ws://" + document.location.hostname + ":" + document.location.port + "/friends/ws");
|
||||
socket = new WebSocket("wss://" + document.location.hostname + ":" + document.location.port + "/friends/ws");
|
||||
|
||||
socket.onopen = function() {
|
||||
console.log("connected to server!");
|
||||
@@ -286,4 +286,4 @@ function sendMessage() {
|
||||
renderMessage(sentMessage);
|
||||
|
||||
textarea.value = "";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user