This message was deleted.
# general
a
This message was deleted.
f
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