You can use this program for various uses. For example, communicate with browser's JavaScript, send command request to minecraft ("/connect HOST:PORT" command).
- remote_minecraft
- developing...
pip install thin-ws-serverfrom thin_ws_server import WebSocketServer
ws = WebSocketServer(8000) # initialize with port number
ws.accept() # accept client connection
ws.send(data) # data: str or bytes
ws.recv() # returns bytes