Skip to content

Use MessagePackReader \ MessagePackWriter to implement IHubProtocol for server-side Blazor #8687

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

Merged
merged 3 commits into from
Apr 1, 2019

Conversation

pranavkm
Copy link
Contributor

@pranavkm pranavkm commented Mar 20, 2019

Fixes #7311

@pranavkm pranavkm requested a review from BrennanConroy March 20, 2019 20:02
@Eilon Eilon added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Mar 20, 2019
Copy link
Member

@BrennanConroy BrennanConroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talk to @Eilon about the submodule/code usage

renderBatchWriter.Write(in batch);
}

var batchBytes = memoryStream.ToArray();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can avoid the second array allocation if you supported Memory<byte> or ArraySegment<byte>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be in SignalR?

@pranavkm pranavkm force-pushed the prkrishn/blazorpack branch from f707609 to 006f1a9 Compare March 29, 2019 20:51
@pranavkm pranavkm marked this pull request as ready for review March 29, 2019 20:52
@pranavkm pranavkm force-pushed the prkrishn/blazorpack branch from 006f1a9 to 1f7ee37 Compare March 29, 2019 20:52
@pranavkm
Copy link
Contributor Author

🆙 📅

@Tratcher Tratcher removed their request for review March 29, 2019 23:26
@@ -42,9 +42,11 @@ async function boot() {
}

async function initializeConnection(circuitHandlers: CircuitHandler[]): Promise<signalR.HubConnection> {
const hubProtocol = new MessagePackHubProtocol();
(hubProtocol as any).name = 'blazorpack';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😻

@pranavkm pranavkm force-pushed the prkrishn/blazorpack branch from 1f7ee37 to 913a8f1 Compare April 1, 2019 18:09
@pranavkm
Copy link
Contributor Author

pranavkm commented Apr 1, 2019

@BrennanConroy
Copy link
Member

Wrong link

@aspnet-hello
Copy link

This comment was made automatically. If there is a problem contact ryanbrandenburg.

I've triaged the above build.

@pranavkm pranavkm merged commit d86c9b3 into master Apr 1, 2019
@pranavkm pranavkm deleted the prkrishn/blazorpack branch April 1, 2019 21:25
@Eilon
Copy link
Member

Eilon commented Apr 1, 2019

Hold on, I didn't sign off on this. We need 3rd Party Notices for this.

@pranavkm
Copy link
Contributor Author

pranavkm commented Apr 1, 2019

@Eilon oops. Should I back out the change?

@Eilon
Copy link
Member

Eilon commented Apr 1, 2019

Naah it's fine, I'll let you know what to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants