#N canvas 37 45 638 458 10;
#X declare -lib maxlib -lib cyclone -lib zexy;
#X obj 413 12 import maxlib cyclone zexy;
#X msg 159 205 disconnect;
#X obj 137 233 netclient;
#X obj 49 153 prepend send;
#X obj 77 269 print;
#X obj 27 66 trigger bang bang;
#X msg 27 88 clear;
#X text 242 204 <-- disconnect when you are done to free the port;
#N canvas 238 612 454 304 (subpatch) 0;
#X obj 101 10 inlet;
#X obj 100 100 tgl 25 0 empty \$0-tgl connected 0 -6 0 8 -4033 -262144
-1 1 1;
#X obj 121 35 select 1;
#X obj 199 245 s \$0-tgl;
#X msg 224 197 label \$1;
#X obj 224 173 symbol;
#X msg 220 133 connected;
#X msg 298 132 -;
#X msg 112 197 color \$1 \$2 \$3;
#X msg 158 165 1 1 0;
#X msg 71 165 -65281 0 -1;
#X obj 171 55 bang;
#X connect 0 0 1 0;
#X connect 0 0 2 0;
#X connect 2 0 10 0;
#X connect 2 0 6 0;
#X connect 2 1 11 0;
#X connect 4 0 3 0;
#X connect 5 0 4 0;
#X connect 6 0 5 0;
#X connect 7 0 5 0;
#X connect 8 0 3 0;
#X connect 9 0 8 0;
#X connect 10 0 8 0;
#X connect 11 0 9 0;
#X connect 11 0 7 0;
#X coords 0 -1 1 1 25 25 1 100 100;
#X restore 205 250 pd;
#X msg 27 37 send;
#X obj 137 344 flatspace/entry 300 100 grey90 black;
#X obj 49 121 flatspace/entry 300 20 grey90 black;
#X text 81 345 message:;
#X text 30 10 type your message in the box below and hit return to
send;
#X obj 394 83 select return;
#X msg 137 176 connect localhost 47292;
#X obj 137 304 prepend append;
#X msg 260 305 key 10;
#X obj 137 282 trigger anything bang;
#X text 305 305 send return to make new line;
#X text 286 176 <-- first connect to the chat-server.pd;
#X connect 1 0 2 0;
#X connect 2 0 4 0;
#X connect 2 0 18 0;
#X connect 2 1 8 0;
#X connect 3 0 2 0;
#X connect 5 0 6 0;
#X connect 5 1 11 0;
#X connect 6 0 11 0;
#X connect 9 0 5 0;
#X connect 11 0 3 0;
#X connect 11 1 14 0;
#X connect 14 0 5 0;
#X connect 15 0 2 0;
#X connect 16 0 10 0;
#X connect 17 0 10 0;
#X connect 18 0 16 0;
#X connect 18 1 17 0;
