use replace ws by wss
This commit is contained in:
@ -5,7 +5,7 @@ export default class extends AbstractView {
|
|||||||
super(params);
|
super(params);
|
||||||
this.setTitle("Chat");
|
this.setTitle("Chat");
|
||||||
|
|
||||||
let url = `ws://${window.location.host}/ws/socket-server/`
|
let url = `wss://${window.location.host}/ws/socket-server/`
|
||||||
|
|
||||||
this.chatSocket = new WebSocket(url)
|
this.chatSocket = new WebSocket(url)
|
||||||
this.chatSocket.onmessage = function(e){
|
this.chatSocket.onmessage = function(e){
|
||||||
|
Reference in New Issue
Block a user