javascript - Websockets and telnet connection - Stack Overflow

Does anyone know if it is possible to use HTML-WebSockets to listen to a telnet stream?Description: I

Does anyone know if it is possible to use HTML-WebSockets to listen to a telnet stream?

Description: I have a DSL-Phone-Router (Fritzbox) which has a "Callmonitor"-function. This sends for every ining/outgoing call a telnet line with specific info.

I can see this stream, when I run...

telnet fritz.box 1012

on my Windows-CMD or MAC-Terminal.

My Question: Is it possible that HTML5-Websockets can listen to this stream? Or can HTML5-Websockets only listen to a Websockets-Server like node.js etc...?

Does anyone know if it is possible to use HTML-WebSockets to listen to a telnet stream?

Description: I have a DSL-Phone-Router (Fritzbox) which has a "Callmonitor"-function. This sends for every ining/outgoing call a telnet line with specific info.

I can see this stream, when I run...

telnet fritz.box 1012

on my Windows-CMD or MAC-Terminal.

My Question: Is it possible that HTML5-Websockets can listen to this stream? Or can HTML5-Websockets only listen to a Websockets-Server like node.js etc...?

Share Improve this question edited Dec 10, 2023 at 13:05 hippietrail 17k21 gold badges109 silver badges179 bronze badges asked Dec 28, 2013 at 2:41 AppGeerAppGeer 7451 gold badge13 silver badges28 bronze badges 1
  • Yeah, websockets itself even has its own protocol (ws:) and needs to be connected to a server that understands it. However, you might be able to get the server to monitor the telnet, and send the stream over a websockets connection. – Hylianpuffball Commented Dec 28, 2013 at 2:47
Add a ment  | 

1 Answer 1

Reset to default 4

The websockify project was created for exactly this sort of thing. It is a python program that bridges between the WebSocket clients and raw TCP servers. You will need somewhere to run websockify, but the websockify requirements are fairly minimal. Also, you will need to implement the client side (HTML/Javascript) to display the stream, but websockify includes a wstelnet.html example that you should be able to modify or use directly for that purpose. Disclaimer: I created websockify.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745139659a4613369.html

相关推荐

  • javascript - Websockets and telnet connection - Stack Overflow

    Does anyone know if it is possible to use HTML-WebSockets to listen to a telnet stream?Description: I

    2小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信