Skip to content
Snippets Groups Projects
Commit c8b44867 authored by Matthias's avatar Matthias
Browse files

try using webrtc

parent 550fab1f
Branches
No related merge requests found
......@@ -2,7 +2,10 @@ const Stream = require('stream')
const app = require('express')();
const http = require('http').Server(app);
const socket = require('socket.io')(http);
const p2p = require('socket.io-p2p-server').Server;
socket.use(p2p); // use webrtc
const fs = require('fs');
const fifoPath = '/tmp/nodeFIFO';
......@@ -18,8 +21,6 @@ function getSummary(s) {
return s.substring(0, 50) + "" + s.substring(s.length - 50, s.length);
}
// unecessary webserver
app.get('/', (req, res) => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment