40 Commits

Author SHA1 Message Date
1ef92f6b19 Do not always require JSON parsing from env vars 2019-11-18 23:37:09 -03:00
e1b7283a94 Remove handling of SIGTERM
New version of socket.io cannot terminate cleanly when there are active
connections:

https://github.com/socketio/socket.io/issues/1602
2019-11-18 22:40:07 -03:00
23fabb0b0c Do not always require custom configuration files 2019-11-18 13:01:01 -03:00
976bd5642c Fix failing test 2019-11-16 09:18:42 -03:00
92a5f2063c Use SignalData on server-side
This should not cause compile issues when simple-peer is not installed
(because client-side JS will be precompiled after pkg is published in
NPM repository) because types are not used in runtime.
2019-11-16 00:06:41 -03:00
703c13f296 Add TypedSocket to server 2019-11-15 23:17:52 -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
b7f2b454ba Replace underscore by lodash 2019-11-13 22:16:34 -03:00
1eaca46a16 Install typescript, upgrade server to TypeScript 2019-11-13 00:54:35 -03:00
6d3201d1fe Fix broken tests 2019-11-11 23:10:51 -03:00
15e870a0d5 Move tests in same folder as modules
This is to make imports cleaner
2019-07-07 19:16:31 +08:00
Michael H. Arieli
721e993dc2 Fixed lint testing 2018-11-23 17:41:39 -08:00
Michael H. Arieli
0d8d3fbb33 Implemented socket chat 2018-11-23 16:55:48 -08:00
Jerko Steiner
6d92c1add3 Fix broken tests after update 2018-11-07 10:36:15 +01:00
b7314643cc Add ability to run a https server 2017-10-29 14:22:51 -04:00
795d31f89f Add ability to set custom base url (reverse proxy)
The URL can be set by either:

1. Setting the `baseUrl` property in `config/default.json`,
   `config/local.json`, or `config/${NODE_ENV}.json` file.
2. Setting the `PEERCALLS_BASE_URL` environment variable.

For example:

```
$ PEERCALLS_BASE_URL=/test1/test2 npm start

> peer-calls@2.0.3 start /peer-calls
> node src/index.js

  peercalls WebSocket URL: /test1/test2/ws +0ms
  peercalls Listening on: 3000 +76ms
```

In this case, opening `http://localhost:3000/test1/test2` would open the
homepage.

Fix #42
2017-08-17 20:14:17 -04:00
7d9f5dce01 Show version on front page 2017-06-18 10:35:38 -04:00
609f370de0 Add more server-side tests 2017-06-18 09:21:17 -04:00
e0474ccb4f Make calls work 2017-06-17 13:22:40 -04:00
b8ebbf8cc4 Fix build 2017-06-17 11:06:48 -04:00
b50eb79463 Use standard linter 2017-06-08 19:47:45 -04:00
d3d7fc3848 Fix linting errors 2017-05-30 20:31:35 -04:00
ddb54a28e2 Add support for coturn authentication 2017-05-30 20:11:18 -04:00
aa2f3f47d8 Fix a bug introduced by SocketIO not having consistent ids
During the time of the initial release of Peer Calls, the server and
client sockets used to have different namespaces - one side had `/#`
prepended to the name, whereas the other did not, so I had to check for
this in the code.

This was fixed since the release of [SocketIO v1.5.0][1], thus breaking the
compatibility with PeerCalls. Any new `npm install` would break this
because of the way it works - it tries to install the latest available
"compatible" release.

As of this commit, the SocketIO version is locked to v1.6.0.

[1]: https://github.com/socketio/socket.io/releases/tag/1.5.0
2016-11-22 11:10:08 -05:00
db493d5901 Fix formatting in routes 2016-04-24 14:48:45 -04:00
add5b707d1 Fix front page call redirect 2016-04-24 12:13:45 -04:00
c675e553c2 Fix /call redirect with/wo trailing slash 2016-04-24 12:08:33 -04:00
8e1cef5408 Fix new call redirect bug 2016-04-24 10:39:39 -04:00
3b95107bbc Make it work on Firefox 2016-04-24 10:37:30 -04:00
Krishna Halaharvi
fe79da8e8f Issue #18 adding Express.Router (#20)
* Issue #18 adding Express.Router

* Updating failed pull with eslint recomended changes
2016-04-10 14:55:54 -04:00
5ec24dd399 Separate socket/peer event handlers 2016-04-06 20:44:12 -04:00
8969ff219f Redesigned front page 2016-04-05 20:12:12 -04:00
Jerko Steiner
bd8e7a67f6 Refactor call initialization 2016-04-04 18:22:21 -04:00
Jerko Steiner
f92bb8a6c1 Rename src/js to src/client 2016-04-04 18:01:31 -04:00
cc1f56e5d1 Replace jest.dontMock with jest.unmock 2016-04-01 20:01:38 -04:00
9efe7474a2 Add input form 2016-03-31 20:00:51 -04:00
ee9a5ea193 Split index.js to two files 2016-03-31 18:54:11 -04:00
51b110448e Rename peercalls to peer-calls 2016-03-31 18:40:47 -04:00
c166006100 Rename project to peercalls 2016-03-31 18:16:52 -04:00
6b90668501 Initial commit, working full screen video 2016-03-31 18:03:39 -04:00