https://rancher.com/ logo
#general
Title
# general
a

adamant-kite-43734

11/23/2022, 8:21 AM
This message was deleted.
f

full-painter-23916

11/23/2022, 8:45 AM
WebSockets start as a regular HTTP request, so auth is passed like any other API call. Which is normally the
R_SESS
cookie for the UI… It could be via the
Authorization
header too as far as the API actually cares, but the browser WebSocket clients can't set arbitrary headers. Then the frames are vanilla kubernetes, the first character is a number denoting stdin (0, you send), stdout (1) or stderr (2) and the rest is the message. (There's also a
4
for resizing the terminal) https://github.com/rancher/dashboard/blob/master/shell/components/nav/WindowManager/ContainerShell.vue
2 Views