Revision 4c6a2323
Added by koszko over 1 year ago
| background/broadcast_broker.js | ||
|---|---|---|
| 42 | 42 |
* proprietary program, I am not going to enforce this in court. |
| 43 | 43 |
*/ |
| 44 | 44 |
|
| 45 |
#IMPORT common/connection_types.js AS CONNECTION_TYPE |
|
| 46 |
|
|
| 47 | 45 |
#FROM common/message_server.js IMPORT listen_for_connection |
| 48 | 46 |
|
| 49 | 47 |
let next_id = 1; |
| ... | ... | |
| 169 | 167 |
|
| 170 | 168 |
function start() |
| 171 | 169 |
{
|
| 172 |
listen_for_connection(CONNECTION_TYPE.BROADCAST_SEND, new_broadcast_sender); |
|
| 173 |
listen_for_connection(CONNECTION_TYPE.BROADCAST_LISTEN, |
|
| 174 |
new_broadcast_listener); |
|
| 170 |
listen_for_connection("broadcast_send", new_broadcast_sender);
|
|
| 171 |
listen_for_connection("broadcast_listen", new_broadcast_listener);
|
|
| 175 | 172 |
} |
| 176 | 173 |
#EXPORT start |
Also available in: Unified diff
make Haketilo buildable again (for Mozilla)
How cool it is to throw away 5755 lines of code...