You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`src/freedom/interfaces`: experiments with freedom interfaces, e.g. interface for experimental `webrtc`
17
-
*`src/freedom/samples`: freedom-sample apps, e.g. P2P chat between two peerconnections in a single chrome app.
17
+
*`src/freedom/samples`: freedom-sample apps, e.g. P2P chat between two peerconnections in a single chrome app.
18
18
*`src/freedom/typings`: typescript declarations for freedom, its core-providers, and main APIs.
19
19
*`src/logging`: handy logging library
20
20
*`src/taskmanager`: Smart grunt task management that avoid re-building the same components multiple times. This assumes that if a component was build once, then it never has to be build again in a single build run.
21
21
* Note: We include the compiled `taskmanager.js`, which has source `src/taskmanager/taskmanager.ts`, so that the Gruntfile can use it. There is a special rule to rebuild this version of taskmanager. Got to love circular dependencies right?
22
22
*`src/webrtc`: utility wrapper for WebRtc Peer Connections & Data Channels
23
23
*`third_party`: Some third party code we use. Mostly TypeScript declarations (e.g. jasmine, WebCrypto, WebRtc, Angular, etc), and some some utility code for providing a common interface to new APIs we use (e.g. the WebRtc adaptor).
24
24
25
-
26
25
## How to use logging
27
26
28
27
* Please include "logging/logging.js" in the html file where freedom library is loaded, please make sure this loading happens before freedom code.
* In freedom module code, log instance can be instantiated this way (replace module_name with name of your own choice).
33
+
* In freedom module code, log instance can be instantiated this way (replace module_name with name of your own choice).
35
34
```
36
35
var log :Freedom_UproxyLogging.Log = freedom['core.log']('module_name');
37
36
```
38
-
* Now following functions are available to record log messages.
37
+
* Now following functions are available to record log messages.
39
38
```
40
39
log.debug('simple debug message with no further argument');
41
40
log.info('It takes args, like from %1:%2 to %1:%3', ['localhost', 3000, 3002]);
@@ -44,3 +43,18 @@ This currently consists of:
44
43
```
45
44
46
45
For a complete example, see: https://github.com/uProxy/uproxy-lib/tree/dev/src/freedom/samples/freedomchat-chromeapp
46
+
47
+
# Samples apps for manual testing
48
+
49
+
There are three sample apps for manual testing, with source code in:
50
+
*`src/samples/copypaste-freedom-chat`
51
+
*`src/samples/simple-freedom-chat`
52
+
*`src/samples/simple-webrtc-chat`
53
+
54
+
These are run by starting a webserver and viewing the html, e.g.
55
+
56
+
````
57
+
python -m SimpleHTTPServer
58
+
```
59
+
60
+
Then goto the relevant main.html file in the relevant sample directory of: `http://localhost:8000/dist/samples/` in your web-browser. Samples should be self-explanatory. Follow instructions and type stuff in text boxes. :)
0 commit comments