You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS: I just saw that WebSocketMessage contains a const std::string& str, that's QUADRUPLE indirection (a pointer to the string, and therein a pointer to the string's contents).
using OnMessageCallback = std::function<void(const WebSocketMessage&)>;
What I do remember is trying real hard to avoid all thread races. But I might have tried a pointer for speedup, which could have been a bad idea.
I had written something called autoroute which was meant to be a benchmark -> https://github.com/bsergean/autoroute
it would be nice to bench your new solution.
Hi, first of all thanks for this great library.
One hint: you could get rid of the double indirection in
by changing it to
This could also be done in a backwards-compatible fashion by offering a second overload, e.g.:
The text was updated successfully, but these errors were encountered: