Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Error initializing handshake with local url. #39

Copy link
Copy link
@chilzyj

Description

@chilzyj
Issue body actions

When I tried create a new socket by doing same as how API done,It cames:
Here is my code ,just same as api:https://github.com/NetEase/UnitySocketIO

void Start () {
    string url = "http://192.168.199.128:5500";
    client = new Client(url);
    client.Opened += SocketOpened;
    client.Message += SocketMessage;
    client.SocketConnectionClosed += SocketConnectionClosed;
    client.Error += SocketError;
    client.Connect();
}

private void SocketError(object sender, ErrorEventArgs e)
{
    Debug.Log(e.Message);
}

private void SocketConnectionClosed(object sender, EventArgs e)
{
    Debug.Log(e);
}

private void SocketMessage(object sender, MessageEventArgs e)
{
    Debug.Log(e.Message);
}

private void SocketOpened(object sender, EventArgs e)
{
    Debug.Log("Socket Connected!");
}

My Server is running at a VMWare machine.
image
And the Unity print:
image

Could you help?Thanks!

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.