Skip to content

Commit

Permalink
added targetType to specify admin/client-directed messages. Updated v…
Browse files Browse the repository at this point in the history
…ersioning
  • Loading branch information
quinkennedy committed Mar 21, 2014
1 parent 50dec35 commit 956a0bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Spacebrew Server

A dynamically re-routable software toolkit for choreographing interactive spaces. Visit http://www.spacebrew.cc to learn more about spacebrew. On our site we feature a bunch of example apps and tutorials to help you get started. You'll also find a blog where we feature spacebrew projects and events.

@version: 0.3.1
@version: 0.3.2
@date: June 1, 2013
@contributors: Quin Kennedy, Brett Renfer, Josh Walton, James Tichenor, Julio Terra

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spacebrew",
"version": "0.2.1",
"version": "0.3.2",
"description": "A dynamically re-routable software toolkit for choreographing interactive spaces.",
"main": "node_server_forever.js",
"scripts": {
Expand Down
5 changes: 4 additions & 1 deletion spacebrew.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @author: Quin Kennedy, Julio Terra, and other contributors
* @filename: node_server.js
* @date: May 31, 2013
* @updated with version: 0.3.0
* @updated with version: 0.3.2
*
*/

Expand Down Expand Up @@ -732,6 +732,9 @@ spacebrew.createServer = function( opts ){
* @param {json} json The message to forward to all Admins
*/
var sendToAdmins = function(json){
//This is an enum designed to specify more generally who the message is targetted toward
//the absense of "targetType" implies "targetType":"client"
json.targetType = "admin";
var toSend = JSON.stringify(json);
for(var i = adminConnections.length - 1; i >= 0; i--){
// check if connection is still open before attempting to send messages
Expand Down

0 comments on commit 956a0bf

Please sign in to comment.