karlseguin / websocket.zig

A websocket implementation for zig
MIT License
283 stars 25 forks source link

client: rework how the handler's type gets checked #45

Closed Raiden1411 closed 2 weeks ago

Raiden1411 commented 2 weeks ago

Previously it would allow tuple and any pointer types. This enforces the expected type to be a non tuple struct or a pointer to one.

karlseguin commented 2 weeks ago

Nice, thanks.