Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Engine\AbstractSocketIO.php on line 123 #149

Open
MuhammedAlmaz opened this issue Feb 7, 2017 · 0 comments
Open

Engine\AbstractSocketIO.php on line 123 #149

MuhammedAlmaz opened this issue Feb 7, 2017 · 0 comments
Labels

Comments

@MuhammedAlmaz
Copy link

MuhammedAlmaz commented Feb 7, 2017

In this code block i get error.
$bytes = unpack('C*', $data);
the bytes is null array.I am going to print_r $bytes and i see it is a null array . Sometimes this result is null . Why i get null ? What is the my mistake ?
I use this example;
https://github.com/Wisembly/elephant.io/tree/master/example/socket.io/1.x/receiver

EDİT ; the $bytes going to null array all time and i get it all time .. I guess it's endless loop

@MuhammedAlmaz MuhammedAlmaz changed the title C:\xampp\htdocs\SocketClientExample\src\Engine\AbstractSocketIO.php on line 123 Engine\AbstractSocketIO.php on line 123 Feb 7, 2017
@Taluu Taluu added the support label Feb 7, 2017
DiaconuFlorinNarcis added a commit to DiaconuFlorinNarcis/elephant.io that referenced this issue May 29, 2017
The kind of change this PR does introduce

- [x]  a bug fix
- [ ]  a new feature
- [x]  an update to the documentation
- [x]  a code change that improves performance
- [ ]  other

Current behavior
Client->read() is hanging the script until data is received.
New behavior
Client->read() will return empty string if no data is received.
Other information (e.g. related issues)
This answers Wisembly#73, Wisembly#149, Wisembly#137 and perhaps Wisembly#60
@Wisembly Wisembly deleted a comment from olukayodepaul Oct 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants