Skip to content

Commit

Permalink
generate websocket url from window url
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrews committed Jul 30, 2022
1 parent 3fcc659 commit 1395d49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/LogViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import "react-virtualized/styles.css";
import ReconnectingWebSocket from 'reconnecting-websocket';

const url = 'ws://localhost:8081/ws';
const url = 'ws://' + window.location.host + '/ws';
const rws = new ReconnectingWebSocket(url);

const minRowHeight = 23;
Expand Down

0 comments on commit 1395d49

Please sign in to comment.