从 Windows 命令行连接到 websocket [英] Connect to websocket from Windows command line

查看:85
本文介绍了从 Windows 命令行连接到 websocket的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从 Windows 命令行连接到 websocket?

Is it at all possible to connect to a websocket from the Windows command line?

我从 Mac 终端使用过 WSCAT,但我似乎找不到替代方法.

I have used WSCAT from the Mac Terminal, but I can't seem to find an alternative.

任何帮助将不胜感激.

推荐答案

Windows 中没有内置的工具可以与 WebSockets 配合使用.

There is no tool built in to Windows that will work with WebSockets.

虽然您可以使用 telnetnetcat 建立连接,但它们是简单的 TCP 客户端,对 WebSockets 一无所知.因此,要么找到第 3 方 WebSocket 命令行客户端,要么自己编写.

Although you can use telnet or netcat to make a connection, they are simple TCP clients and know nothing about WebSockets. So, either find a 3rd party WebSocket command-line client, or write your own.

这篇关于从 Windows 命令行连接到 websocket的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆