Comments (2)
Not at this time. React's initial design was to be fully asynchronous and evented through the Reactor. That being said, if handleData were to return a string this would be possible.
from socket-client.
👎 on introducing synchronous code in an async library
I've looked into this with @cboden, however I believe this requires more work than it appears to on the surface and is therefor a bad idea to introduce in React.
React's design is entirely based on the idea of async I/O and that blocking method calls must be avoided. This might seem confusing at first, and probably won't fit all people's needs. However, this provides some great features and performance not otherwise achieved in blocking implementations.
I believe there are better alternatives than using React if you need blocking methods calls.
from socket-client.
Related Issues (20)
- Support Promise cancellation HOT 4
- Return Connection object which exposes remote address HOT 4
- Streams closed while data still in buffer HOT 3
- Gzip Decompress HOT 1
- Connection doesn't time out when using SSL HOT 1
- SNI_server_name is deprecated HOT 1
- SSL Buffer Drain: The Redux HOT 23
- loop response HOT 1
- Certain (older) PHP versions ignore SSL option verify_peer=true HOT 1
- Backport v0.5.0 fixes to v0.4 branch HOT 2
- False positive connection HOT 4
- [Question] Can I Query LDAP after successfully connecting? HOT 1
- Keep connection open HOT 1
- Support for delayed secure connections (STARTTLS) HOT 4
- How to recieve data? HOT 1
- Server Name Indication (SNI) issues on legacy PHP < 5.6
- Merge into Socket component and deprecate SocketClient component HOT 1
- Roadmap to stable v1.0.0 HOT 7
- Abandon package on packagist HOT 3
- Connector 怎么实现重连机制 HOT 2
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 socket-client.