GithubHelp home page GithubHelp logo

Comments (6)

thessem avatar thessem commented on July 28, 2024

I also don't appear to be able to connect to a namespace, which I am able to do with the Socket.IO JS client. Again, I'm not sure if that's an as-of-yet unwritten feature or if I'm using the library wrong

from socketio.

zyxar avatar zyxar commented on July 28, 2024

Hi @thessem, did you open a namespace on server side, like below example?
https://github.com/zyxar/socketio/blob/master/example_test.go#L94

from socketio.

thessem avatar thessem commented on July 28, 2024

Thanks for getting back to me. I am not using https://github.com/zyxar/socketio server code, my server is https://github.com/googollee/go-socket.io. The server definitely has namespaces working correctly as they are usable using the https://socket.io/ (v1.4) client library.

If I get some time this week I will attempt an end-to-end example. Would you still consider it a bug if it does not replicate using https://github.com/zyxar/socketio as both the client and the server?

from socketio.

zyxar avatar zyxar commented on July 28, 2024

I guess so.
Will look into this later :)

from socketio.

thessem avatar thessem commented on July 28, 2024

I suspect this is a socket.io version thing.

My use case here is that I'm using your library to unit test an existing go-socket.io server. My work around was to set the namespace in each test for both the client and the server to "/" in which case everything seems to work. So, this isn't a production bug for me, and I have an at least an inelegant workaround.

Also, I'd just like to say thanks for your library, I tried a few other golang socket.io client libraries and none of them even slightly worked for my usecase.

from socketio.

thessem avatar thessem commented on July 28, 2024

Closing because I no longer use this library (changed jobs)

from socketio.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.