vue安装websocket命令
时间: 2023-08-27 07:12:38 浏览: 174
在Vue中安装websocket的命令是通过npm来进行安装的。根据引用的内容,安装第一个包的命令是`npm install sockjs-client@1.4.0`,安装第二个包的命令是`npm install stompjs@2.3.3`。所以你需要在终端中运行这两个命令来安装所需的包。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [vue中websocket的使用方式](https://blog.csdn.net/cjm986161086/article/details/123430478)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [在vue中使用websocket](https://blog.csdn.net/qq_45770253/article/details/118194706)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *3* [webSocket使用及vue中封装使用(客户端和服务端搭建)](https://blog.csdn.net/focusmickey/article/details/109153248)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文