Giter Club home page Giter Club logo

Comments (7)

marcguyer avatar marcguyer commented on August 18, 2024

That's an exception thrown by the elephant.io client. See here:

https://github.com/Wisembly/elephant.io/blob/master/lib/ElephantIO/Client.php#L330

The handshake is very simple, a straight HTTP request to the socket.io URL. Turn on curlopt_verbose there to see where curl is sending the request (probably http://localhost:3000/socket.io/1). Try that in your browser and see what you get. It should be a colon (:) delimited string.

from elephant.io.

priyankkhunt89 avatar priyankkhunt89 commented on August 18, 2024

Thanks for reply,
But I know this thing i got same url like (http://localhost:3000/socket.io/1).
but i mean to say it is working perfectly on windows system this same thing but not working on linux system.
In future i would like to upload this thing on live server which might be linux.

And i picked up my title issue line from exact here after tracking:
https://github.com/Wisembly/elephant.io/blob/master/lib/ElephantIO/Client.php#L330

from elephant.io.

herlon214 avatar herlon214 commented on August 18, 2024

I'm having the same issue.

Exception: This socket.io server do not support websocket protocol. Terminating connection... on line 341

from elephant.io.

plinskiy avatar plinskiy commented on August 18, 2024

hello!
I`m having the same problem
Is there a solution?

http://localhost:3000/socket.io/1 give: {"code":0,"message":"Transport unknown"}
but http://localhost:3000/socket.io/?EIO=2&transport=websocket&sid=some_sid - work very nice
it seems that the developers have made โ€‹โ€‹changes to the api(socket.io).

from elephant.io.

Juribiyan avatar Juribiyan commented on August 18, 2024

Same problem. It worked all the time and it still works in production but today it suddenly started throwing this exception on my test server. I haven't even updated anything or changed the code.

from elephant.io.

Juribiyan avatar Juribiyan commented on August 18, 2024

It seems I figured it out. The problem was on my side: I had cURL configured to use proxy.
From reading source code I suspect though that Elephant.io won't work with Socket.io v.1 since api has changed completely.

from elephant.io.

Taluu avatar Taluu commented on August 18, 2024

I think it was due to Socket.io v1 api, which has changed things here and there. Its api was implemented in the 3.0 release (and the edge of its development is available on the refacto-3.0 branch).

Closing.

from elephant.io.

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.