joelcox / dups

A little abstraction layer for writing UDP based services in Node.
MIT License
0 stars 0 forks source link

Add broadcast messaging #2

Open joelcox opened 11 years ago

joelcox commented 11 years ago
server.init(function(response) {
    response.setBroadcast(true);
    response.send('join', {'name': 'joel'});
});
joelcox commented 11 years ago

i'd get rid of the setBroadcast in favor of something like sendBroadcast - just to keep with the simplicity

@seejohnrun