Author Topic: Always disconnected in OS X's browser  (Read 4501 times)

chatpongs

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Always disconnected in OS X's browser
« on: June 01, 2014, 11:13:36 AM »
I am new to TNet but impressed by its simplicity. It took me a little time to set everything up. Everything works as it should.

The problem I have now is really weird. It happens only to OS X's browser, no matter what it is Chrome or Safari. After the first success to connect to the server, if I refresh (cmd+r), later time it will always disconnect me. What I have to do is to quit (cmd+q) and reopen the browser. The first connect will succeed again but after refresh, it will get disconnected.

I am having the first scene with an object with TNAutoJoin attached (TNManager is attached automatically) The first time I load the web page, it is okay and I am sent to the connected scene. But later times, I will be sent to disconnected scene

I am using TNet 1.8.5, the server is hosted at Digital Ocean. This problem occurs only in Mac OS X, no problem at all in Windows

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Always disconnected in OS X's browser
« Reply #1 on: June 01, 2014, 06:56:32 PM »
Latest version is currently 1.9.1, and 1.8.5 is a bit out of date. That said, it sounds like some issue on Unity's side since the code on TNet's side is exactly the same regardless of the platform. Webplayer support has been going downhill with each Unity version for the past year and a half...

SimonW

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Always disconnected in OS X's browser
« Reply #2 on: June 22, 2015, 05:48:52 AM »
Sorry to drag up an old post, but I'm having exactly this issue. Updating to the latest version of the library didn't help at all. Is there anything else you could suggest?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Always disconnected in OS X's browser
« Reply #3 on: June 25, 2015, 09:29:24 PM »
I'll need more info. Where does it happen, do you have "run in background" enabled, what's the timeout timer, what does the server do that results in the disconnect (you can put breakpoints in the server), etc.