Photon Client SDK and WebGL

GLeBaTi
GLeBaTi
edited March 2016 in DotNet
Hi. When i run game in unity editor, it working file.
When i compile as WebGL and open page in firefox, i have this error:

[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:3058219:43
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:9360:2
__ZN6il2cpp2os10ThreadImpl3RunEPFvPvES2_ [il2cpp::os::ThreadImpl::Run(void (*)(void*), void*)]@blob:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:2653112:47
__ZN6il2cpp2os6Thread3RunEPFvPvES2_ [il2cpp::os::Thread::Run(void (*)(void*), void*)]@blob:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:2874729:9
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:2963923:9
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:17416:10
__ZN6il2cpp6icalls8mscorlib6System9Threading6Thread15Thread_internalEP12Il2CppThreadP14Il2CppDelegate [il2cpp::icalls::mscorlib::System::Threading::Thread::Thread_internal(Il2CppThread*, Il2CppDelegate*)]@blob:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:1225486:14
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:1791638:7
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:2181642:3
__ZN16VirtFuncInvoker0IbE6InvokeEjPv [VirtFuncInvoker0::Invoke(unsigned int, void*)]@blob:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:2811156:7
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:1340847:7
__ZN16VirtFuncInvoker2IbP8String_tS1_E6InvokeEjPvS1_S1_ [VirtFuncInvoker2::Invoke(unsigned int, void*, String_t*, String_t*)]@blob:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:2745912:7
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:2942910:9
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:16256:10
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:1759101:8
__ZN16VirtFuncInvoker2IbP8String_tS1_E6InvokeEjPvS1_S1_ [VirtFuncInvoker2::Invoke(unsigned int, void*, String_t*, String_t*)]@blob:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:2745912:7
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:1097111:8
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:2760409:9
[email protected]:null/0e57772a-6990-46ba-afc3-1dc4b6f931bb:2770978:9


I think in this method: peer.Connect(connection, appName) the application try start new thread, but WebGL not supporting multi-threading

Comments

  • Hi,
    WebGL is not supported by current SDK v4.0.5.0
    Please wait for next release.
  • vadim said:

    Hi,
    WebGL is not supported by current SDK v4.0.5.0
    Please wait for next release.

    Thank for reply
    I have 4.0.5.1
    When is the next release?
  • From the topic title I concluded that you use dotnet SDK (last version 4.0.5.0). But of course you meant Unity SDK since editor mentioned. Unity SDK 4.0.5.1 supports WebGL.
    Please create new project, open and export one of the demos from unpacked SDK archive (I used demo-particle-unity). So no outdated files will be in your project for sure.
  • Thank you, Vadim. It is work for me (i set new version of server and add websocket folder and connection to sctipts)