broadfield-dev commited on
Commit
61c62fa
·
verified ·
1 Parent(s): 1ec49a7

Update static/scripts.js

Browse files
Files changed (1) hide show
  1. static/scripts.js +1 -1
static/scripts.js CHANGED
@@ -1,4 +1,4 @@
1
- const socket = io();
2
  const canvas = document.getElementById('gameCanvas');
3
  const ctx = canvas.getContext('2d');
4
  const tileSize = 32;
 
1
+ const socket = io('http://localhost:7860'); // Explicitly specify your local server
2
  const canvas = document.getElementById('gameCanvas');
3
  const ctx = canvas.getContext('2d');
4
  const tileSize = 32;