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

Non-generic overload of the On method? #59

Closed
MichelArendt opened this issue Oct 31, 2019 · 3 comments
Closed

Non-generic overload of the On method? #59

MichelArendt opened this issue Oct 31, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@MichelArendt
Copy link

Any way to call the non-generic On method like the example in the docs?

Example from docs:
connection.On("Receive", this.Handle);

If not, any reason why the non-generic is not implemented? I'm trying to accomplish this:
private void Configure() { HubConnection.On("notify", this.OnConnectedToAPI); } public void OnConnectedToAPI() { Console.WriteLine("============================"); }

Thanks in advance!

@galvesribeiro galvesribeiro self-assigned this Oct 31, 2019
@galvesribeiro galvesribeiro added the enhancement New feature or request label Oct 31, 2019
@galvesribeiro
Copy link
Member

Hey @MichelArendt, thanks for the feedback.

I'll look into implementing it and see if there is an specific reason we didn't added it before.

Like always, you can make a PR if you few in the mood :)

Thanks!

@MichelArendt
Copy link
Author

Thanks for the reply @galvesribeiro!

I'd really love to help, but unfortunately I'm not knowledgeable enough atm I'm afraid :(

Thanks for taking this suggestion into consideration! I'll try to implement a workaround or overload on my project for now.

@galvesribeiro
Copy link
Member

DEPRECATION NOTE: This package is no longer required since Blazor WebAssembly now supports SignalR Client. Users of this package should stop using it and use the official client instead.

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

No branches or pull requests

2 participants