Navigation Menu

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

Synchronization with official semantic definitions #2

Closed
Loongle opened this issue Mar 5, 2019 · 2 comments
Closed

Synchronization with official semantic definitions #2

Loongle opened this issue Mar 5, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Loongle
Copy link

Loongle commented Mar 5, 2019

After I saw the example and finished the practical operation, I felt it was quite different from the official semantics

Using c # of Microsoft. AspNetCore. SignalR. Client, for example. The connection code is as follows

Connection = new HubConnectionBuilder()
          .WithUrl("http://localhost:55563/imessage/chart", (option) =>
{
     option.AccessTokenProvider = () => Task.Run(() => access_token);
 
}).Build();

Typescript connection example:

    this.hubConnection = new signalR.HubConnectionBuilder()
      .withUrl('http://localhost:55563/imessage/chart', {
        accessTokenFactory: () => this.tokenService.get().token
      }).build();

With this semantic definition, most developers can seamlessly migrate any language and use signalr.
All attribute method operations are basically the same

@mandrewcito mandrewcito added the enhancement New feature or request label Mar 5, 2019
@mandrewcito mandrewcito pinned this issue Mar 7, 2019
@mandrewcito
Copy link
Owner

Take a look to https://github.com/mandrewcito/signalrcore/tree/improvesyntax on this branch im trying to improve syntax!

@mandrewcito mandrewcito self-assigned this Mar 9, 2019
@mandrewcito
Copy link
Owner

In this post i explain changes https://dev.to/mandrewcito/signalr-core-python-client-iv-improving-syntax-2pf6 , examples had been updated.

@mandrewcito mandrewcito unpinned this issue Feb 10, 2020
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