lmb
33c4f0b01b
Update to express 4.x
2014-10-18 13:30:45 +01:00
Vsevolod Strukchinsky
2ce55f8e33
Pass server
or port
option to PeerServer
...
This allows to initialize websocket server properly
2014-10-18 12:34:14 +01:00
Vsevolod Strukchinsky
bcb585065b
Remove return next()
- they are unnecessary in express
2014-10-18 12:34:14 +01:00
Vsevolod Strukchinsky
9e0d861715
Migrate to express from restify
...
PeerServer is now instance of express application - this allows to combine it with other express applications.
Listen is deferred - because it now method from express (you can call it later and supply callback for start event).
Constructor now not using `new` (because we mixing in methods to express app)
Closes #36
2014-10-18 12:34:14 +01:00
Michelle Bu
6cfbe60031
Hack to fix #49 until we can move to express.
2014-08-29 02:06:20 -04:00
Michelle Bu
50765a09c9
Format comment
2014-04-13 21:42:51 -07:00
Marcelo Casiraghi
10ad6b46f5
Add support for configurable server ip address
2014-04-06 16:13:05 -03:00
Michelle Bu
983c86b639
May not need to stringify
2014-03-09 14:29:13 -07:00
Michelle Bu
8c1eb5d978
Allow discovery
2014-03-09 13:29:21 -07:00
Michelle Bu
4fc23261b3
Add option
2014-03-01 12:28:23 -08:00
Michelle Bu
766442d281
Fixes #32
2014-02-03 19:25:53 -08:00
Michelle Bu
1f246028e4
Merge pull request #29 from peers/events
...
Emit connection/disconnect events.
2014-01-05 12:00:35 -08:00
Michelle Bu
a17fe6380a
Addresses #23
2013-12-23 23:28:24 -05:00
hij1nx
64966ba208
removes unused require and updates deps
2013-10-28 16:48:52 -07:00
Michelle Bu
84acb8a217
handleTransmission tests
2013-10-19 00:14:51 -07:00
Michelle Bu
5affb856d8
Remove ugly switch
2013-10-18 20:04:05 -07:00
yosssi
32381d1f2f
Deleted the unused variable.
2013-10-07 22:25:56 +09:00
yosssi
974f00c996
fixed some syntax mistakes.
2013-10-07 10:22:14 +09:00
Ilya Grigorik
443680f139
fix ip lookup
2013-07-05 22:42:30 -07:00
Michelle Bu
70ee781154
ssl options, closes #13
2013-06-15 19:21:07 -07:00
Michelle Bu
c0130c418b
remove whitespace
2013-06-15 18:31:44 -07:00
Michelle Bu
eb0ddfcc6b
update for lack of port firefoxism
2013-04-24 09:23:35 -07:00
Michelle Bu
b6f033e4e8
remove commented out part
2013-04-05 14:05:00 -07:00
Michelle Bu
24805444cc
restify fixes
2013-04-05 11:12:07 -07:00
David Gage
00b41d6d02
got this working with restify (as far as I can tell anyway)
2013-04-02 16:50:25 -04:00
Michelle Bu
8f2f7cef6f
firefox port
2013-03-31 01:01:18 -05:00
ericz
d5f72731ab
fix xhr race condition
2013-02-15 10:25:09 -08:00
ericz
c76064301f
retry if no key available
2013-02-15 09:49:56 -08:00
ericz
55e5599428
cleanup cleanup code
2013-02-15 09:20:32 -08:00
ericz
08957a0aa6
prevent missing key errors
2013-02-13 10:16:23 -08:00
Michelle Bu
c1b8196744
setInterval to clean up ips
2013-02-13 01:46:58 -08:00
ericz
6bd6b2460e
working
2013-02-13 01:31:52 -08:00
ericz
9760350959
merge
2013-02-13 01:30:07 -08:00
ericz
7547f5f1ae
json stringify erros
2013-02-13 01:28:06 -08:00
ericz
0dcf44ded3
working
2013-02-13 00:28:39 -08:00
ericz
2a0ddb2769
remove console.log
2013-02-13 00:10:34 -08:00
ericz
6f22c4225e
add keys
2013-02-13 00:04:07 -08:00
ericz
08df4056da
working
2013-02-12 22:33:58 -08:00
ericz
d4ccb5d7df
many updates
2013-02-12 16:30:39 -08:00
Michelle Bu
804fcdd9e8
ID -> OPEN
2013-02-07 22:30:43 -08:00
Michelle Bu
728b21278d
ws spoof issue
2013-02-07 21:33:52 -08:00
Michelle Bu
e20c74789a
small thing
2013-02-07 12:25:56 -08:00
ericz
f2c420fb59
store just messsage
2013-02-06 23:14:03 -08:00
ericz
f5a6148993
probably id is taken messages
2013-02-06 15:55:11 -08:00
ericz
44ee59e18e
expire correctly
2013-02-06 15:26:13 -08:00
Michelle Bu
1ac03a1039
ice -> candidate
2013-02-05 11:46:37 -08:00
Michelle Bu
67f623f68b
cleanup
2013-02-05 02:14:45 -08:00
Michelle Bu
f60bfa8a96
socket close handler, message unification
2013-02-05 01:28:17 -08:00
Michelle Bu
d998280445
delayed connected was not working for socket candidates
2013-02-03 10:58:32 -08:00
Michelle Bu
0d264b4119
more flexible leave option for peer v connections
2013-02-02 11:50:47 -08:00