The web app now streams gcode over web sockets

This commit is contained in:
Sohel
2024-11-20 15:49:55 +01:00
parent ec5c788e92
commit 4896e64074
4 changed files with 107 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
import socket
import sys
# Create a TCP/IP socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
# Connect the socket to the port where the server is listening
server_address = ('192.168.0.1', 81)
print(sys.stderr, 'connecting to %s port %s' % server_address)
sock.connect(server_address)