Giter VIP home page Giter VIP logo

Comments (5)

1iveowl avatar 1iveowl commented on May 30, 2024

Not sure. I've only tested this library with wss://echo.websocket.org (Echo Test) and this seeems to work according to the Websocket specification.

If you want to help you can either download the code here and try and debug it youself or you can point me to a running server that uses SocketIO somewhere on the internet and I'll have a look at the debugging myself?

from websocketclientlite.pcl.

1iveowl avatar 1iveowl commented on May 30, 2024

So I looked into it some more and my understanding is that a WebSocket Client can't really talk to a Socket.IO server. See this Stack Overflow post: Connect to Socket.io server with standard web-socket client

I also tried installing a SocketIO Server from this example: Get Started: Chat application and what fails is that when the Websocket library tries to connect to the Socket IO server, the Socket IO Server does not seem to reply. The stream I see coming back is zero bytes and the connection then times out.

Does this answer your question?

from websocketclientlite.pcl.

cmisztur avatar cmisztur commented on May 30, 2024

Well... your library kind of works, as well as WebSockets-sharp.

What URI did you use?
You'll need something like this: ws://127.0.0.1:1338/socket.io/?EIO=2&transport=websocket

Can you try against 0.3.2 from here: http://easel.inventables.com/downloads.
You will need *:* added to origins in iris.js for yourself to connect.
(Not sure if origin is part of WS spec, but it would definitely help.)
Before you run node iris.js give yourself some debug: set DEBUG=*,-not_this

/chris

from websocketclientlite.pcl.

1iveowl avatar 1iveowl commented on May 30, 2024

Thank you. That was very helpful.

I tracked now some odd behavior related to the handshake. For some reason this issue does not present itself when using the echo.websocket.org test server but it does surface when connecting to a Socket IO server.

I've released a 3.6.1-beta NuGet version that should have fixed the issue. Please test and confirm?

from websocketclientlite.pcl.

cmisztur avatar cmisztur commented on May 30, 2024

I pulled the source, works good!
Thanks.

from websocketclientlite.pcl.

Related Issues (20)

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.