Skip to main content

render

Function render 

Source
pub fn render(ws_port: u16, token: &str) -> String
Expand description

Renders the snippet for the given WebSocket port and session token.

The port is interpolated as a bare numeric literal and the token inside the single-quoted string literal already present in the template.