Skip to content

Commit

Permalink
use a different port for listener
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpalumbo committed Nov 20, 2020
1 parent 8837d0c commit c577bf4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 30 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if(mode === 'server'){
localSendPort = 7403
} else if (mode === 'listener'){
// localReceivePort = 7404
localSendPort = 7403
listenerModeSendPort = 7405
}

// ***** Local UDP-Sender ******* //
Expand Down Expand Up @@ -245,8 +245,8 @@ if (mode === "server"){
});

} else if (mode === 'listener'){
const localSend = new Client('127.0.0.1', localSendPort);
console.log('Configure your local pd patch(es) to listen on UDP Port ' + localSendPort)
const localSend = new Client('127.0.0.1', listenerModeSendPort);
console.log('Configure your local pd patch(es) to listen on UDP Port ' + listenerModeSendPort)
// run the app in client mode
// ***** Websocket ******* //
// WebSocket that will automatically attempt to reconnect if the connection is closed, or if the remote server goes down
Expand Down
43 changes: 16 additions & 27 deletions listener.pd
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
#N canvas 659 236 782 508 12;
#X obj 30 106 oscparse;
#X obj 30 78 netreceive -u -b;
#X msg 30 52 listen 7401;
#X obj 30 130 list trim;
#X obj 30 156 route fromClient;
#X floatatom 30 181 5 0 0 0 - - -;
#X obj 30 21 loadbang;
#X obj 396 107 oscparse;
#X obj 396 79 netreceive -u -b;
#X obj 396 131 list trim;
#X floatatom 396 182 5 0 0 0 - - -;
#X obj 396 22 loadbang;
#X msg 396 53 listen 7403;
#X obj 396 157 route fromServer;
#X text 70 182 Jen's Data;
#X text 438 182 Erin's Data;
#X connect 0 0 3 0;
#X obj 72 106 oscparse;
#X obj 72 78 netreceive -u -b;
#X obj 72 130 list trim;
#X floatatom 72 241 5 0 0 0 - - -;
#X obj 72 21 loadbang;
#X text 114 241 Erin's Data;
#X obj 72 156 route fromServer fromClient;
#X floatatom 279 241 5 0 0 0 - - -;
#X text 321 241 Jen's Data;
#X msg 72 52 listen 7405;
#X connect 0 0 2 0;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 6 0 2 0;
#X connect 7 0 9 0;
#X connect 8 0 7 0;
#X connect 9 0 13 0;
#X connect 11 0 12 0;
#X connect 12 0 8 0;
#X connect 13 0 10 0;
#X connect 2 0 6 0;
#X connect 4 0 9 0;
#X connect 6 0 3 0;
#X connect 6 1 7 0;
#X connect 9 0 1 0;

0 comments on commit c577bf4

Please sign in to comment.