Comments (6)
Thanks for reporting the issue (and for being interested in Icicle)! What version of Icicle are you using?
from icicle.
icicleio/icicle v0.8.3
icicleio/react-adapter v0.3.1
react/event-loop v0.4.1
from icicle.
Okay thanks. Can you give some code that generates this error? When adding a stream to the event loop, it should only throw an exception if $resource
is an invalid resource handle.
from icicle.
I'm using react/zeromq wich support polling for zeromq sockets. Those sockets are handled by react loop using the filedescriptor wich is an int (see here).
Removing the check for $resource is an invalid resource handle allow to use filedescriptors.
I removed those lines and worked as expected.
from icicle.
I removed the is_resource()
check in v0.9, which I'll be tagging shortly. I'll need to update the related libraries to work with the new version, as there's a number of changes in v0.9. Hopefully this will be the last major change before a v1.0.
I'll update and close this issue once everything is ready for you to try the new version.
from icicle.
@goddanao Try using the new version of Icicle and related packages with your code and see if it works now. I removed the resource check from SocketEvent
, which has also been renamed to Io
.
"icicleio/icicle": "^0.9.1"
"icicleio/react-adaptor": "^0.4"
Many interfaces and classes were renamed to remove Interface
suffixes with the new versions, but you should be able to update with find-and-replace fairly quickly. If you have any questions, don't hesitate to ask.
from icicle.
Related Issues (13)
- Ambiguous event extension description HOT 2
- Fix PHP requirement in the Readme HOT 10
- Memory leak in Loop HOT 1
- What is the best web framework for icicle to integrate in? HOT 4
- Fail to run the example code HOT 6
- PHP 7.0.2 and 7.0.3 Generator Bug
- stream_select behaviour HOT 2
- Icicle performance test HOT 3
- Fatal error: Class 'Icicle\Http\Client not found. HOT 3
- defunct not exit HOT 2
- documentation in icicle.io domain is not available / parked
- PHP 5.4 using PHP 5.5 features HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from icicle.