fix: add /wss/ prefix to WebSocket URL for nginx proxy
URL should be /wss/harnessed_reasoning/reasoning_console.wss, not /harnessed_reasoning/reasoning_console.wss. Nginx consumes the /wss prefix to route to the WebSocket service.
This commit is contained in:
parent
42fd93b706
commit
d6d3e61a9e
@ -19,7 +19,7 @@
|
|||||||
if (!this.userId) this.userId = 'anonymous';
|
if (!this.userId) this.userId = 'anonymous';
|
||||||
|
|
||||||
var protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
var protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';
|
||||||
var url = protocol + '//' + window.location.host + '/harnessed_reasoning/reasoning_console.wss';
|
var url = protocol + '//' + window.location.host + '/wss/harnessed_reasoning/reasoning_console.wss';
|
||||||
this.ws = new WebSocket(url);
|
this.ws = new WebSocket(url);
|
||||||
|
|
||||||
this.ws.onopen = function() {
|
this.ws.onopen = function() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user