Skip to content

Instantly share code, notes, and snippets.

@not-fl3
Created July 20, 2019 13:37
const server_porotocols = [_]lws_protocols{ http_protocol: {
var p: lws_protocols = init_zeroes(lws_protocols);
p.name = c"http-only";
p.callback = callback_http;
p.per_session_data_size = @sizeOf(usize);
break :http_protocol p;
}, init_zeroes(lws_protocols) };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment