Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

[workaround] How to define the protocol in websocket in webGL

Discussion in 'Multiplayer' started by evergoo, Jan 17, 2018.

  1. evergoo

    evergoo

    Joined:
    Aug 3, 2017
    Posts:
    6
    Hi all,

    I small app that runs on a java websocket server on "echo-protocol". I have it in unity working on windows but now i want to get it running under webgl. Only the webgl implementation has standard not a protocol definition. So i get all the time the error : Error: Specified protocol was not requested by the client

    Has any one an idea how to specify the protocol ?
     
  2. evergoo

    evergoo

    Joined:
    Aug 3, 2017
    Posts:
    6
    Workaround, Just removed the protocol requirement and now it accepts all.
    from "echo-protocol" to ""