Skip to content
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

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from
Open

[CPP] API sketch #1

wants to merge 6 commits into from

Conversation

BrennanConroy
Copy link
Owner

No description provided.


private:
template <typename T>
void invoke_with_args(const std::function<void(T)>& func, const std::tuple<T>& args)

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

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

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants