diff --git a/static/html/chat_main.html b/static/html/chat_main.html
index 8acba44..bf44c32 100644
--- a/static/html/chat_main.html
+++ b/static/html/chat_main.html
@@ -167,7 +167,7 @@
leftTabActive:"first",
users:[],
usersMap:[],
- server:"ws://"+window.location.host+"/chat_server",
+ server:"wss://"+window.location.host+"/chat_server",
socket:null,
messageContent:"",
currentGuest:"",
diff --git a/static/html/chat_page.html b/static/html/chat_page.html
index 2d40560..5320d39 100644
--- a/static/html/chat_page.html
+++ b/static/html/chat_page.html
@@ -132,7 +132,7 @@
delimiters:["<{","}>"],
data: {
window:window,
- server:"ws://"+window.location.host+"/chat_server",
+ server:"wss://"+window.location.host+"/chat_server",
socket:null,
msgList:[],
messageContent:"",