Skip to content

Commit

Permalink
fix: update WebSocket URL to use protocol-relative URL
Browse files Browse the repository at this point in the history
  • Loading branch information
kalinkrustev committed Feb 25, 2025
1 parent 73d7e00 commit bae7806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mono-log/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const App = () => {
const ws = useRef(null);

useEffect(() => {
ws.current = new WebSocket('ws://' + window.location.host.replace(':3000', ':8080'));
ws.current = new WebSocket('//' + window.location.host.replace(':3000', ':8080'));
ws.current.onmessage = (event) => {
let logMessage = event.data;
try {
Expand Down

0 comments on commit bae7806

Please sign in to comment.