Update your version of SignalR 0.5.3 is about 10 versions behind
How to remove BOM from SignalR responses at Mono server?
-
21-04-2022 - |
Domanda
I am running signalR at Mono at all the requests are processed correctly, however the response always contains a byte at the beginning and the end of the file.
E.g. the response for hub.start() is this:
98
{"Url":"/signalr/signalr","ConnectionId":"785f2444-8320-4232-af54-793a7e0784e3","TryWebSockets":false,"WebSocketServerUrl":null,"ProtocolVersion":"1.0"}
0
Which of course cannot be parsed as JSON.
The same yields for the generated http://mysite.com/signalr/hubs script, it begins with this:
dce
/*!
* ASP.NET SignalR JavaScript Library v1.0.1
* http://signalr.net/
And it breaks the browsers javascript parser.
The same issue does not occur when running under II, it occurs only at Mono.
Soluzione
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow