-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CPP] API sketch #1
base: dev
Are you sure you want to change the base?
Conversation
|
||
private: | ||
template <typename T> | ||
void invoke_with_args(const std::function<void(T)>& func, const std::tuple<T>& args) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there (or could there be) any way for a user to add one of these if they really want to add an invocation that takes more than 7 args?
@@ -0,0 +1,140 @@ | |||
#include "json_hub_protocol.h" | |||
|
|||
namespace signalR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should probably be in a subnamespace. signalR::converters
or something
{ | ||
public: | ||
template <typename ...T> | ||
std::tuple<T...> parse_message(const std::string& data) const |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is obviously going to need some work still. We need to return parsed versions of all the messages, support non-text protocols via some kind of byte buffer input, etc.
No description provided.