From abd669849d6ee7ef6b8854b6f3d8840757e14f47 Mon Sep 17 00:00:00 2001 From: Pawel Kadluczka Date: Mon, 11 Sep 2017 17:20:48 -0700 Subject: [PATCH] Making MsgPack work in IE10 --- client-ts/Microsoft.AspNetCore.SignalR.Client.TS/Formatters.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client-ts/Microsoft.AspNetCore.SignalR.Client.TS/Formatters.ts b/client-ts/Microsoft.AspNetCore.SignalR.Client.TS/Formatters.ts index adc794a884..d4edd4db41 100644 --- a/client-ts/Microsoft.AspNetCore.SignalR.Client.TS/Formatters.ts +++ b/client-ts/Microsoft.AspNetCore.SignalR.Client.TS/Formatters.ts @@ -22,7 +22,8 @@ export namespace TextMessageFormat { export namespace BinaryMessageFormat { export function write(output: Uint8Array): ArrayBuffer { - let size = output.byteLength; + // .byteLength does is undefined in IE10 + let size = output.byteLength || output.length; let buffer = new Uint8Array(size + 8); // javascript bitwise operators only support 32-bit integers