我正在尝试构建一个 WebSockets 客户端,该客户端接收从使用(android studio)使用本文档提供的简单示例构建的移动应用程序发送的图像。但是当我将 IP 地址和端口号替换为移动应用程序提供的 IP 地址和端口号时,出现以下错误:
C:\Users\LENOVO\Anaconda3\python.exe "D:/SBME/4th year/1at term/Electronics/Task3/Wclient.py"
Traceback (most recent call last):
File "C:\Users\LENOVO\Anaconda3\lib\site-packages\websockets\http.py", line 139, in read_response
status_line = await read_line(stream)
File "C:\Users\LENOVO\Anaconda3\lib\site-packages\websockets\http.py", line 219, in read_line
raise EOFError("line without CRLF")
EOFError: line without CRLF
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\LENOVO\Anaconda3\lib\site-packages\websockets\client.py", line 101, in read_http_response
status_code, reason, headers = await read_response(self.reader)
File "C:\Users\LENOVO\Anaconda3\lib\site-packages\websockets\http.py", line 141, in read_response
raise EOFError("connection closed …Run Code Online (Sandbox Code Playgroud)