Skip to content

System.Exception: unknown server protocol version #24

Open
@DrewRidley

Description

@DrewRidley

On Xamarian.Forms, I received the following exception.

System.Exception: unknown server protocol version

    void IBasicListener.OnConnectError(Socket socket, ErrorEventArgs e)
    {
        System.Diagnostics.Debug.WriteLine("Connection Error : " + e.Exception.ToString());
    }

    protected override void OnStart()
    {
        conn = new Socket("ws://73.159.237.174:8000");
        conn.SetListerner(new App());
        conn.SetReconnectStrategy(new ReconnectStrategy().SetMaxAttempts(10));
        conn.Connect();
    }

The issue appears to be WebSocket related, which leads me to believe it may have something to do with an exception within SocketClusterClient itself, rather than my specific application. Thanks,

Drew.

UPDATE:
kerryjiang/WebSocket4Net#8
This issue seems related, so I believe you have to pass the origin into WebSocket4Net. If someone could take on this task, and bring this project back to its original potential, we would all greatly appreciate that. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions