Jump to content
  • Advertisement
Josheir

SignalR Question about Function Call, Please Help Me!

Recommended Posts

When the program is run now with breakpoints the function is working, however when run in Start Without Debugging, the function usually does not work.  Any ideas?

Share this post


Link to post
Share on other sites
Advertisement

It’s close to midnight here now and I’m just about to fall asleep, so I’m not looking at the code right now, but see if there is a possibility that the printinitial function is called before the register function is done.

 

jquery is Async, so that might be it. Use the wait() operation in the backend or done() function on the client side if you can to make sure the printinitial function is not called prematurely.

Share this post


Link to post
Share on other sites

Maybe you could help me tomorrow with something specific.  Thanks very much, so far!  

Share this post


Link to post
Share on other sites

I can't reproduce that specific problem. And I don't know which changes you've made to your code now.
But as long as I open two browsers and have two players, the code is working on my end.
(However, if I just have one player some problems occur, but that might be something you're thinking about handling down the road?)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!