文章大纲
- server and client 样例代码
- 报错 信息 分析
- 结论
- 参考文献与学习路径
server and client 样例代码
client 端代码
import asyncio
import websockets
IP_ADDR = "ip"
IP_PORT = "port"
# 握手,通过发送hello,接收"123"来进行双方的握手。
async def clientHands(websocket):
import asyncio
import websockets
IP_ADDR = "ip"
IP_PORT = "port"
# 握手,通过发送hello,接收"123"来进行双方的握手。
async def clientHands(websocket):