1. postman v8.5版本 以上支持 websocket。
2. 选择websocket请求模块
File - New...
3. 输入请求地址, ws://
控制台输出:
2023-09-12 15:29:23.039 INFO 11592 --- [nio-8080-exec-2] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring DispatcherServlet 'dispatcherServlet'
2023-09-12 15:29:23.039 INFO 11592 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : Initializing Servlet 'dispatcherServlet'
2023-09-12 15:29:23.040 INFO 11592 --- [nio-8080-exec-2] o.s.web.servlet.DispatcherServlet : Completed initialization in 1 ms
新的窗口101已连接!当前在线人数为1
postman v8.5.1版本下载
链接: https://pan.baidu.com/s/1CaXKkIFLyluLJd3KNdSlaw
提取码: dhj5