Open sreisich opened 1 month ago
Sure, as long as you implement ttyd's websocket protocol, it's pretty simple.
Glad to hear that, thanks. If you like, I would like to sponsor a fully working vanilla javascript example. Would you be open to such an offer? I mean, I'm not a javascript pro and you know how to do it... I would like to sponsor an example index.html with vanilla js showing how an external page could connect to the ttyd socket. If you like, you can include this example here in the project, or anywhere, as open source code. Others might be interested in it too. If you are interested, let me know how I can contact you privately to talk about sponsoring...
Why not just copy the code in this project?
If you really want a vanilla javascript example, I would recommend you to take a look at xterm.js's demo: https://github.com/xtermjs/xterm.js/tree/master/demo
Is there a way to implement ttyd's client side in my own application? I mean, implement xterm.js in my own application that connects to the websocket provided by ttyd? What would the vanilla js code look like?
If this is technically possible, I would really like to sponsor this project. Please let me know what you think.