7 Commits

Author SHA1 Message Date
cd4979c3be Generate userIDs on server-side
We don't want to depend on:

1) socket.io generated IDs because they change on server reconnect
2) simple-peer generated IDs because they change for every peer
connection

We generate a single ID when the call web page is refreshed and use that
throughout the session (until page refresh).

We keep relations of user-id to socket-id on the server side in memory
and use that to get to the right socket. In the future this might be
replaced with Redis to allow multiple nodes.

If the server is restarted, but people have active calls, we want them
to keep using the active peer connections and only connect to new peers.

Ideally, we do not want to disturb the active peer connections, but peer
connections might be restarted because the in-memory store will not have
the information on for any peers in the room upon restart.
2020-03-13 13:33:54 +01:00
c26b0bc5f8 Add baseUrl for favicon 2020-03-12 21:13:53 +01:00
8ebd92c53d Add input field to specify call name 2020-03-11 14:24:36 +01:00
a828b1570d Replace doT with ejs
doT had a security vulnerability and ejs has even fewer dependencies:

https://www.npmjs.com/advisories/798
2019-11-19 23:41:34 -03:00
fcc11ec984 Fix version in index.html 2019-11-19 13:14:07 -03:00
2d14e5fd33 Replace pug with doT
Pug contains a lot of unnecessary dependencies leading to code bloat,
which results in increased docker package size, and thus docker image
size). express-dot-engine is much simpler and performs better.
2019-11-19 12:21:19 -03:00
17bea91c1d Move src/{views,res} to root
To make it available after ts server files are compiled into lib folder
2019-11-13 22:27:34 -03:00