It seems like a Microsoft bug. If I try to return an object from a function in the server called by a client and the object has a circular reference to its own:
public class User
{
public User OtherUser;
}
public User GetUser()
{
User user = new User();
user.OtherUser = new User();
user.OtherUser.OtherUser = user;
return user.OtherUser;
}
The server function is recalled again and then the hub doesn't respond to further calls, anyone encountered this behavior? I turned into using an id of the object instead of a reference to the object to solve this.