Import with #import "std/net_ws_curl_linux".
PollDescriptor :: struct { fd: s32; events: s16; returned: s16; }PollRead :: 1NoSocket :: () -> PollDescriptorValidSocket :: (descriptor: PollDescriptor) -> boolCurlWsFrame :: struct { age: s32; flags: s32; offset: s64; bytes_left: s64; length: u64; }CurlConnectOnly :: 141CurlActiveSocket :: 5242924CurlAgain :: 81CurlWsText :: 1CurlWsContinue :: 4CurlWsClose :: 8Output is NUL terminated on success. status is 401 on an unauthorized
ReceiveWebSocketCurl :: (context: *void, url: string, token: string, output: []u8, status: *s32) -> boolOutput is NUL terminated on success. status is 401 on an unauthorized handshake so a protocol client can refresh its session and retry.