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.

有帮助吗?

解决方案

Update your version of SignalR 0.5.3 is about 10 versions behind

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top