ssbc / dgram-broadcast Goto Github PK
View Code? Open in Web Editor NEWFormerly known as "broadcast-stream" on npm
License: MIT License
Formerly known as "broadcast-stream" on npm
License: MIT License
I've not being able to pipe something into a buffer using concat-stream. I guess because there's not a clear way to gracefully end the stream. Neither with destroy.
Any hints?
To send messages also outside the local network.
Without modifying anything about your example code from main github page, I get this error:
*Fedora 20, node v.0.10.28:
dgram.js:248
throw new TypeError('First argument must be a buffer object.');
^
TypeError: First argument must be a buffer object.
at Socket.send (dgram.js:248:11)
at Socket.socket.write (/home/q2dg/node_modules/broadcast-stream/index.js:16:12)
at null. (/home/q2dg/borrar:7:34)
at wrapper as _onTimeout
at Timer.listOnTimeout as ontimeout
*Fedora 20, node v.0.11.12:
dgram.js:242
throw new TypeError('First argument must be a buffer or string.');
^
TypeError: First argument must be a buffer or string.
at Socket.send (dgram.js:242:11)
at Socket.socket.write (/home/q2dg/node_modules/broadcast-stream/index.js:16:12)
at null. (/home/q2dg/borrar:7:34)
at wrapper as _onTimeout
at Timer.listOnTimeout (timers.js:133:15)
dgram.js:630
throw errnoException(err, 'dropMembership');
^
Error: dropMembership EINVAL
at _errnoException (util.js:1021:11)
at Socket.dropMembership (dgram.js:630:11)
at process.<anonymous> (/Users/alan/Code/tableflip/vers/node_modules/broadcast-stream/index.js:12:12)
at emitOne (events.js:115:13)
at process.emit (events.js:210:7)
at process.exit (internal/process.js:154:15)
at process.on (/Users/alan/Code/tableflip/vers/index.js:28:15)
at emitNone (events.js:105:13)
at process.emit (events.js:207:7)
at Signal.wrap.onsignal (internal/process.js:205:44)
I was talking to some folks in the dweb camp IRC and we were discussing how to get various protocols working and it was brought up that using something like CJDNS or Yggdrasil for routing could cause problems for SSB since it's local node discovery wouldn't work.
It'd be cool if this module had a fallback to use multicast in IPv6.
I think what would need to be done is:
cc @staltz
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.