Comments (4)
AFAIK right now it isn't possible. Every substream uses the same parser (the one used by the underlying stream).
from substream.
Hows hard would it be to implement this feature? Any tips/tricks/workarounds you could think of?
from substream.
I don't know, it's not easy and it will probably require structural changes in Primus.
from substream.
I guess, I have to use multiple primus instances on server side and client side if I need to use primus for both binary and JSON data transfer. Or, intercept messages?
Can you think of a module that allows binary file transfer using primus? I only found some links for socket.io through Google.
from substream.
Related Issues (14)
- On Data Event Raised by all connected sockets? HOT 1
- Substreams cannot write from server to client if using binary parser HOT 6
- Uncaught TypeError: primus.substream is not a function HOT 5
- Add ability to emit events from client to server and vice versa HOT 1
- `error` event support HOT 1
- Is it possible to authorize on substream level? HOT 2
- `npm test` fails HOT 2
- Compatibility with primus-callbacks HOT 1
- An in-range update of ws is breaking the build 🚨 HOT 1
- An in-range update of ws is breaking the build 🚨 HOT 7
- client pipe? HOT 4
- Support different parser type than parent spark HOT 2
- 'connection' event similar to mux-demux?
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 substream.