Skip to content

Commit

Permalink
Webclient fix
Browse files Browse the repository at this point in the history
# Changes
* Setting websocket port from config
* provisioning script change
  • Loading branch information
Volte6 authored Mar 4, 2025
1 parent ca7f4c8 commit 3e3e470
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions _datafiles/html/public/webclient.html
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ <h3>Volume Controls</h3>
socket.close();
return;
}
debugLog("Connecting to: " + 'ws://'+location.host +':{{ .WebPort }}/ws');
socket = new WebSocket('ws://'+location.host +':{{ .WebPort }}/ws');
debugLog("Connecting to: " + 'ws://'+location.host +':{{ $config.WebPort }}/ws');
socket = new WebSocket('ws://'+location.host +':{{ $config.WebPort }}/ws');

socket.onopen = function() {
term.writeln("Connected to the server!");
Expand Down
2 changes: 1 addition & 1 deletion provisioning/copy-rpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ scp ./${RPI_BIN} ${RPI_HOST}:${RPI_HOST_PATH}/mud/${RPI_BIN} && \

echo "Starting Server on RaspPi: ${RPI_HOST}"
rm ${RPI_BIN} && \
ssh ${RPI_HOST} -f 'cd ${RPI_HOST_PATH}; ./startup-run-mud.sh'
ssh ${RPI_HOST} -f 'cd ${RPI_HOST_PATH}; sudo ./startup-run-mud.sh'

0 comments on commit 3e3e470

Please sign in to comment.