Replies: 5 comments 7 replies
-
|
Hey @Barre, good catch :) There's no docs yet, but I'll be working on documentation for this in the coming weeks. I plan to move all docs from https://asciinema.org/docs to https://docs.asciinema.org and then add streaming doc there. I can ping you when it's up, if you'd like. |
Beta Was this translation helpful? Give feedback.
-
|
In short: player's
The player automatically detects which one the server uses so there's not much to configure on the player side other than specifying To test this you can do the following: Create named pipe: mkfifo live.pipeStart websocket server with websocat, which reads from the pipe: websocat -v --text --no-close ws-l:127.0.0.1:9002 reuse-raw:autoreconnect:readfile:live.pipeConnect to the server in JS like this: AsciinemaPlayer.create('ws://127.0.0.1:9002');Then in another shell start recording session: asciinema rec live.pipe |
Beta Was this translation helpful? Give feedback.
-
|
Thank you @ku1ik! I will explore this :) To provide some context on my situation: I've been utilizing xterm.js in conjunction with a custom websocket protocol to navigate a recorded terminal session and to view both live sessions and their history. I'm considering switching to asciinema, believing it might be more suitable given its design for recordings and the extensive tools it offers. |
Beta Was this translation helpful? Give feedback.
-
|
After some experimentation, everything ran smoothly! I managed to replace xterm.js + my solution without much trouble. Currently, it seems there isn't support for seeking previous data. Given that I'm not dealing with vast amounts of data, the websocket server could theoretically stream all the data from the beginning to attain the current state. Ideally, I'd like to integrate both live and past recorded data within the same user interface, such as the way youtube or twitch is doing it without hacking too much into asciinema itself. |
Beta Was this translation helpful? Give feedback.
-
|
FYI with the release of asciinema CLI 3.0 the streaming protocol(s) have been solidified and properly documented here: https://docs.asciinema.org/manual/server/streaming/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I saw that in the latest release there is "added experimental websocket-based live streaming protocol (ALiS)". Is there any documentation showing what a rough implementation would look like in terms of messages?
Beta Was this translation helpful? Give feedback.
All reactions