Skip to content
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

Added support for different message formats (JSON, LightPayload, MessagePack) #65

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

DanielRuthardt
Copy link

Additional implemented Xterm.js addon supporting all server-side message formats.

Additional to the original message format, there is now support for:

  • JSON
  • MessagePack
  • LightPayload (a custom message format reducing message size and latency)

There is a new command called switch_format which allows switching the message format on the fly. The client-side will issue this command right after connecting so that the client-side can choose the initial message format without depending on the server-side.

The default message format on the server-side is JSON, as was. The JSON message format is fully backwards-compatible to the version before this PR.

Additional implented Xterm.js addon supporting all server-side message formats.
Additionally merged .gitignore file for the static files with the main .gitignore file.
It is now possible to select the message format right from the beginning, rather than switching from JSON (usually the server's default message format) to the desired message format.
Fixed issue, the RTYPES properties were not correctly swapped, as such unpacking packs fpr LightPayload and MessagePack didn't work and no message were received (due to the type being empty).
devmonkey22 added a commit to devmonkey22/terminado that referenced this pull request Jun 10, 2019
devmonkey22 added a commit to devmonkey22/terminado that referenced this pull request Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant