-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addon documentation for intercepting socket data. #2440
Comments
@hatched From IO viewpoint there is not much magic going on - the terminal has a Imho the terminado plugin could be adopted to v4 easily (to get the idea see the attach addon). Note that we had to remove the terminado plugin from our codebase as it was not actively maintained. |
Thanks for the reply @jerch I had a similar idea and took the existing I think the root of the issue was that I was expecting to interact with the |
It's my intention that once it's sufficiently stable to put it on npm, unless you'd like it contributed back to the project? It'll be written in JS not TS. |
@hatched probably best to live under your user but we can link to it. We had a terminado addon earlier and decided to put it out as we couldn't maintain it. |
I think this issue can be closed? |
@hatched do you have anything to share? Still not clear what is the correct way to have Terminado working with v4 |
@FrancYescO Whats the problem with terminado, whats unclear on its end? Edit: Ofc there are further improvements possible (like switching to bytearray websocket transfer, which is abit faster), but that depends on how terminado/tornado wants to deal with data on server side. Or even more complicated stuff like multiple terminal session over just one socket, flow control and what else. |
@jerch sincerely, what i was struggling for is trying to use AttachAddon with terminado, do you suggest to just manage the ws connection directly? |
@FrancYescO I cannot answer that for you, it depends too much on outer constraints like additional protocol stack you want transport over the socket. The attach addon itself is bare metal in this regard, it does not deal with things like authentication/authorization, thus should not be used in production envs without further security measures. But thats beyond the scope of xterm.js, as it always involves special preparations on server side as well. Same with proper flow control. |
Actually my main objective is to upgrade from the v3 of xterm (using the terminado addon) leaving untouched the ws server (using tornado), so basically i give up with the AttachAddon.
|
Maybe missing the CSS file? |
oww, yes, also that, was that easy, thanks! |
It would be great if there was some documentation on how to interact with xterm via a plugin, not simply just registering one.
With the new addon change in v4 the old terminado plugin no longer appears to work. I'm not able to find any documentation on how to write such a plugin which requires, aiui, intercepting the incoming and outgoing messages to format them into a structure that makes sense to display to the user.
The old plugin appears to clobber a few internal methods which no longer exist.
Thanks!
The text was updated successfully, but these errors were encountered: