bcoin-org / bsock Goto Github PK
View Code? Open in Web Editor NEWMinimal implementation of the socket.io protocol.
License: Other
Minimal implementation of the socket.io protocol.
License: Other
Hi, I want to use bclient in a react app, in order to do so I need es5 npm packages: https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#npm-run-build-fails-to-minify
It's odd that Socket
inherits from EventEmitter but implements its own event cycle with bind
https://github.com/bcoin-org/bsock/blob/master/lib/socket.js#L19
https://github.com/bcoin-org/bsock/blob/master/lib/socket.js#L837-L887
I raise this issue because I was mistakenly using on
and not bind
so events we're firing, but there is something odd about the implementation as such, its managing two lifecycles one on the Socket, one internally on Events.
Perhaps as a solution, on
could proxy to bind
when sensible to maintain a consistent event emitter implementation
Current socket.io vendor in test is probably outdated, it still relies on new Buffer
so if you run tests it show deprecation warnings. At some point node will probably remove constructors.
I am leaving this as issue right now, so we don't forget to address this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.