-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebsocketserver-help.pd
140 lines (140 loc) · 4.08 KB
/
websocketserver-help.pd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
#N canvas 174 44 1023 626 12;
#X msg 23 13 connect 8080;
#X msg 41 38 disconnect;
#X obj 223 318 vradio 15 1 0 2 empty empty empty 0 -8 0 10 -262144
-1 -1 0;
#X floatatom 174 240 5 0 0 0 - - -;
#X obj 165 134 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X msg 182 272 send \$1;
#X floatatom 189 141 5 0 0 0 - - -;
#X obj 188 166 t b f;
#X obj 174 218 f;
#X obj 219 539 print;
#X obj 172 365 websocketserver;
#X floatatom 241 404 5 0 0 0 - - -;
#N canvas 0 50 523 300 info 0;
#X obj 164 44 inlet;
#X obj 143 247 outlet;
#X obj 201 249 outlet;
#X obj 264 250 outlet;
#X obj 163 88 unpack s f s;
#X obj 160 162 route open;
#X obj 161 113 pack s f;
#X obj 240 162 route close;
#X obj 160 136 list trim;
#X obj 343 251 outlet;
#X obj 337 162 route server-running;
#X connect 0 0 4 0;
#X connect 4 0 6 0;
#X connect 4 1 6 1;
#X connect 4 2 3 0;
#X connect 5 0 1 0;
#X connect 5 1 7 0;
#X connect 6 0 8 0;
#X connect 7 0 2 0;
#X connect 7 1 10 0;
#X connect 8 0 5 0;
#X connect 10 0 9 0;
#X restore 371 354 pd info;
#X floatatom 365 526 5 0 0 0 - - -;
#X floatatom 387 480 5 0 0 0 - - -;
#X symbolatom 411 435 0 0 0 0 - - -;
#X text 419 413 ip;
#X text 394 461 close client;
#X text 373 506 open client;
#X obj 365 552 s sn;
#X obj 193 190 r sn;
#X obj 151 495 route sl1;
#X obj 154 570 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X msg 271 66 sl1 \$1;
#X floatatom 271 41 5 0 0 0 - - -;
#X obj 293 187 t b a;
#X msg 311 118 h2 hello world;
#X msg 311 141 h2 Print something<br>and something else;
#X obj 137 84 f;
#X obj 154 60 r sn;
#X obj 138 61 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X msg 137 105 closeclient \$1;
#X obj 241 442 list tosymbol;
#X symbolatom 241 465 0 0 0 0 - - -;
#X msg 27 89 verbosity \$1;
#X obj 27 68 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X obj 420 390 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 424 369 server running;
#X obj 539 492 pdcontrol;
#X msg 546 434 dir;
#X msg 556 466 browse file:///\$1/send_receive.html;
#X text 317 94 print to the html <div>;
#X text 311 43 send to the slider in the html example;
#X text 533 412 open the html example in the browser;
#X text 148 585 receive from the slider in the html example;
#X msg 279 260 some number: \$1;
#X text 201 222 client id;
#X obj 623 22 cnv 15 380 340 empty empty empty 20 12 0 14 -228856 -66577
0;
#X obj 649 211 websocketserver;
#X text 726 259 4) extra info;
#X text 674 306 2) outputs as list of bytes;
#X text 645 329 1) outputs as Pd list;
#X text 703 146 2) grater than 0 to broadcast to all connected clients
, f 30;
#X text 738 184 3) anything - the message to be sent;
#X text 698 282 3) client id;
#X text 649 84 inlets for sending message(s):;
#X text 644 237 oulets for the received message(s):;
#X text 672 104 1) takes many self-explaining messages in this help
patch:, f 42;
#X text 116 13 connect <port number>;
#X text 23 112 prints to the console. warning eats more CPU., f 15
;
#X msg 311 164 clear-h2;
#X text 618 557 - "nicinfo": shows the ip of your network card(s);
#X text 617 578 - "webserver": http file server;
#X text 604 535 useful companion objects you can get from Deken:;
#X text 704 24 [websocketserver] runs on another thread.;
#X text 683 42 Each client that connects gets a new thread.;
#X connect 0 0 10 0;
#X connect 1 0 10 0;
#X connect 2 0 10 1;
#X connect 3 0 5 0;
#X connect 4 0 8 0;
#X connect 5 0 10 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 7 1 45 0;
#X connect 8 0 3 0;
#X connect 10 0 21 0;
#X connect 10 1 32 0;
#X connect 10 2 11 0;
#X connect 10 3 12 0;
#X connect 12 0 13 0;
#X connect 12 1 14 0;
#X connect 12 2 15 0;
#X connect 12 3 36 0;
#X connect 13 0 19 0;
#X connect 20 0 8 1;
#X connect 21 0 22 0;
#X connect 21 1 9 0;
#X connect 23 0 25 0;
#X connect 24 0 23 0;
#X connect 25 0 8 0;
#X connect 25 1 10 2;
#X connect 26 0 25 0;
#X connect 27 0 25 0;
#X connect 28 0 31 0;
#X connect 29 0 28 1;
#X connect 30 0 28 0;
#X connect 31 0 10 0;
#X connect 32 0 33 0;
#X connect 34 0 10 0;
#X connect 35 0 34 0;
#X connect 38 0 40 0;
#X connect 39 0 38 0;
#X connect 40 0 38 0;
#X connect 45 0 10 2;
#X connect 60 0 25 0;