Coder Social home page Coder Social logo

elephantio / elephant.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tohenk/elephant.io

84.0 4.0 34.0 690 KB

Send events to a socket.io server through PHP

Home Page: https://elephantio.github.io/elephant.io/

License: MIT License

PHP 92.08% JavaScript 7.92%

elephant.io's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

elephant.io's Issues

Question: How can I receive packets when I don't know the content?

Hello,

I am new with websockets/IOSockets. I have a bit on experience using IOSockets in Node and Python but I need to use php as a IOSocket client and elephant.io seems to be what I am looking for.

The question that I have is about how to receive messages when I don't know the content. (any message)
$client->wait('blablabla') will wait until "blablabla" is receveid but how can I get ANY messages and then check what the message is?

Should I use drain for that? Is that correct?

Thank you!

Creation of dynamic property is deprecated

Multiple warnings using the library with PHP 8.2+ inside \src\Engine\Store.php on line 186.

[DEPRECATED] Creation of dynamic property ElephantIO\Engine\Xxxx::$yyyy is deprecated in \vendor\elephantio\elephant.io\src\Engine\Store.php on line 186.

  • Option::$wait
  • Option::$timeout
  • Option::$reuse_connection
  • Option::$transport
  • Option::$transports
  • Option::$binary_as_resource
  • Option::$version
  • Option::$max_payload
  • Option::$auth
  • Packet::$args
  • Packet::$event
  • Packet::$proto
  • Packet::$data
  • Packet::$type
  • Packet::$nsp
  • Session::$id
  • Session::$upgrades
  • Session::$timeouts
  • Session::$max_payload
  • Session::$heartbeat

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.