Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running example code #1

Closed
q2dg opened this issue Jun 1, 2014 · 1 comment
Closed

Error running example code #1

q2dg opened this issue Jun 1, 2014 · 1 comment

Comments

@q2dg
Copy link

q2dg commented Jun 1, 2014

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)

@dominictarr
Copy link
Contributor

oops, it was because it passes in a Date and not a string.
I've pushed a fix: edae8c6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants