hesh915 / go-socket.io-client

socket.io client for golang
BSD 3-Clause "New" or "Revised" License
97 stars 68 forks source link

Invalid Input when creating new client #20

Open eugbyte opened 2 years ago

eugbyte commented 2 years ago
        opts := &socketio_client.Options{
        Transport: "websocket",
    }

    client, err := socketio_client.NewClient("https://cloud.tech", opts)
    if err != nil {
        log.Printf("NewClient error: %v\n", err)
        return
    }

    client.On("error", func() {
        log.Printf("on error\n")
    })

I am getting NewClient error: invalid input

eugbyte commented 2 years ago

I traced the error down to newClientConn() > onOpen, more specifically this line

flufy3d commented 2 years ago

don't use this lib,it's too old too buggy.I wast few days on it

martinperez2306 commented 2 years ago

@flufy3d Hi! What library do you recommend? Thx!

flufy3d commented 2 years ago

@flufy3d Hi! What library do you recommend? Thx!

I switch to nodejs now ,golang is not well support for socketio especially client side