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
In the repository root directory you can find some simple examples. Click [here for local connection example](https://github.com/vardius/peer-data/tree/master/examples/local-connection).
10
+
11
+
This simple project demonstrates how to setup WebRTC connection using [peer-data](https://github.com/vardius/peer-data) and custom signalling channel instead of builtin [SocketChannel](https://github.com/vardius/peer-data/blob/master/src/app/SocketChannel.ts).
12
+
13
+
To run this example simple clone the repository and perform the following from the root directory:
14
+
15
+
```sh
16
+
➜ examples git:(master) ✗ cd local-connection
17
+
➜ local-connection git:(master) ✗ yarn
18
+
yarn install v1.22.1
19
+
[1/4] 🔍 Resolving packages...
20
+
success Already up-to-date.
21
+
✨ Done in 0.13s.
22
+
➜ local-connection git:(master) ✗ yarn start
23
+
yarn run v1.22.1
24
+
$ node server.js
25
+
Server started at port 3000
26
+
```
27
+
28
+
Then open [http://localhost:3000/](http://localhost:3000/).
In the repository root directory you can find some simple examples. Click [here for socket signalling channel example](https://github.com/vardius/peer-data/tree/master/examples/socket-channel).
10
+
11
+
This simple project demonstrates how to setup WebRTC connection using [peer-data](https://github.com/vardius/peer-data) and socket signalling channel.
12
+
13
+
To run this example simple clone the repository and perform the following from the root directory:
14
+
15
+
```sh
16
+
➜ examples git:(master) ✗ cd socket-channel
17
+
➜ socket-channel git:(master) ✗ yarn
18
+
yarn install v1.22.1
19
+
[1/4] 🔍 Resolving packages...
20
+
success Already up-to-date.
21
+
✨ Done in 0.13s.
22
+
➜ socket-channel git:(master) ✗ yarn start
23
+
yarn run v1.22.1
24
+
$ node server.js
25
+
Server started at port 3000
26
+
```
27
+
28
+
Then open [http://localhost:3000/](http://localhost:3000/).
0 commit comments