SIGNALR Proxy Object exception: uncaught typeerror:cannot Read Property ' client ' of undefined launch conclusion

Source: Internet
Author: User

A Dnthub hub was created in the background

There was a problem with the foreground at the time of the call (check that the proxy object creation failed)

So he went to the StackOverflow to find the following:

http://stackoverflow.com/questions/14146913/signalr-cannot-read-property-client-of-undefined

It says change to lowercase is OK, a lot of people have solved the success

Inverse day to lowercase after also resolved, var chat = $.connection.dnthub

Perhaps a lot of people directly ignored ~ ~ ~But, why did I solve it? C # naming rules is the first letter capitalized AH?

Inverse day like to drill down, so open its dynamically generated JS, found a sentence

So, the original default generated is the lowercase beginning,,,,,,,, (⊙o⊙) ... A lot of people say it's over? NoNoNo

What does a program ape need? Imagination and anti-conventional imagination!

So I'm bold enough to assume that we can specify a name?

Internet search, the original through the hubname ("xxx") can set the name

Expand, you can set any name through this, not necessarily the same as the class name

So try again?

Look at the dynamically generated JS,

Hey, cool!

Conclusion:

If you do not set hubname yourself, then SIGNALR will automatically help us generate a hubname with the same class name and a lowercase start

There are two ways to solve this problem, a hubname with the first lowercase in JS, and another

Signalr Proxy Object exception: uncaught typeerror:cannot Read Property ' client ' of undefined conclusions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.