网站如何做的看起来高大上,邯郸哪有做网站的,wordpress 页脚地图,电商网站产品设计优化技术主要是postman
新版postman (版本v11以上) #xff0c;除了http协议#xff0c;还支持了Websocket#xff0c;MQTT#xff0c;gRPC等多种连接协议#xff0c;可以作为多种协议的客户端#xff0c;使用起来非常方便。 使用
服务端代码
这里以websocket协议举例#xff0c;代…
postman
新版postman (版本v11以上) 除了http协议还支持了WebsocketMQTTgRPC等多种连接协议可以作为多种协议的客户端使用起来非常方便。 使用
服务端代码
这里以websocket协议举例代码示例 index.ts
import { WebSocketServer } from ws;const wss new WebSocketServer({ port: 8080 });wss.on(connection, function connection(ws) {ws.on(error, console.error);ws.on(message, function message(data) {console.log(received: %s, data);});ws.send(Hi, I am websocket server!);
});
# 运行启动一个 websocket server然后使用postman连接
npx tsx index.ts效果 测试连接发送消息等非常方便 标签#可视化#gui