Simon Eisenmann
a2f0830c79
Validate Offer and Answer content, so only events without _token key are triggered as channelling event to bus.
11 years ago
Simon Eisenmann
e33796f83f
Added support for NATS pub/sub messaging to trigger channeling events for external services.
11 years ago
Leon Klingele
067ed1c3e3
cryptoRand.Int / pseudoRand.Intn to generate random integer. Previous way was modulo-biased
11 years ago
Leon Klingele
2cfe8af4df
Add missing characters to random string function, so we use the full upper+lowercase alphabet
11 years ago
Simon Eisenmann
6920fcc891
Fix wrong type for syscall.Setrlimit on FreeBSD ( #244 )
...
Values are uint64 on Unix but FreeBSD uses int64 for legacy reasons.
11 years ago
Simon Eisenmann
737a34482d
Fixed test by initializing default room type correctly.
11 years ago
Simon Eisenmann
9e1aedaad3
Avoid to handle the main room as global room.
11 years ago
Simon Eisenmann
77d7860ba1
Moved CSP into HTTP response headers for odf and pdf sandbox and allowed blob: and data: img-src.
11 years ago
Simon Eisenmann
b3d03b819c
Serve odf and pdf sandbox from the server to prepare CSP http header for Firefox compatibility as Firefox does not support CSP in meta tag (see https://bugzilla.mozilla.org/show_bug.cgi?id=663570 ).
11 years ago
Simon Eisenmann
a523d6b783
Improved comments.
11 years ago
Joachim Bauch
5be1eda4ee
Don't return users twice in "Welcome" from global room.
11 years ago
Simon Eisenmann
6c1e9791d5
Added renegotiation configuration to server.
11 years ago
Simon Eisenmann
2be68c554c
Moved default room type to config.
11 years ago
Simon Eisenmann
856a23faca
Correct some errors found by golint.
11 years ago
Simon Eisenmann
beff7439b8
Bumped copyright to 2015.
11 years ago
Simon Eisenmann
d6f5dcac9e
Moved from Sleepy to Sloth.
11 years ago
Simon Eisenmann
e0fa8c8b43
Allow slashes unquoted in room names. This brings nested rooms.
11 years ago
Simon Eisenmann
69db76290d
Added server side ApiVersion returned with self to distinguish client and server API version support.
11 years ago
Simon Eisenmann
8d4ff54505
Updated tests to new room name with type api.
11 years ago
Simon Eisenmann
0a44f596bf
Implemented room types.
11 years ago
Simon Eisenmann
1d031b71ca
Fixed missing chat envelope which got lost in 56aa603293.
11 years ago
Lance Cooper
dcf1cc687a
Rename MakeSelf to HandleSelf as it now conforms to handler usage.
12 years ago
Lance Cooper
56aa603293
Add guards for NPE's when processing channelling API messages.
...
This also refactors the channelling API for better clarity
as well as introducing the following functional changes:
* All Hello requests will now receive a Welcome or Error return.
* The message sent in response to a successful authentication
request now uses the Iid provided with the originating request.
* Responses to requests for the Self document now use the Iid
provided with the originating request.
* Failed authentication requests now receive an error return.
* Malformed requests for the Hello, Authentication, Sessions,
and Rooms documents will now receive an error return.
* Requests for the Sessions document which cannot be processed
now receive an error return.
* Requests for the Users document will receive an error return
if the requesting session has not joined a room.
12 years ago
Simon Eisenmann
3804c74277
Make sure to send session close messages to subscriptions too to notify both ways.
12 years ago
Simon Eisenmann
d5323d2610
Fixed an issue where replaced sessions cannot receive data from contacts in other rooms.
12 years ago
Simon Eisenmann
bf516b5423
Make sure to send session close messages to subscriptions too to notify both ways.
12 years ago
Simon Eisenmann
e967ff5907
Fixed an issue where replaced sessions cannot receive data from contacts in other rooms.
12 years ago
Simon Eisenmann
56b2aa093e
Ignore incoming channelling messages larger than 1MB.
12 years ago
Simon Eisenmann
a64e977aa6
Fixed authentication success userid log.
12 years ago
Simon Eisenmann
84c7be8fe3
Close websocket connection outside connection lock.
12 years ago
Simon Eisenmann
7b418e2c2c
Avoid to defer replace and close.
12 years ago
Simon Eisenmann
c49331bd7d
Avoid beeing stuck in hub lock when a client gets replaced but the old connection does not hang on close.
12 years ago
Simon Eisenmann
457eabf23f
Contacts can now be disabled on server module level (server.conf).
12 years ago
Simon Eisenmann
eb1ecce7e0
Avoid the need for another mutex in Client by moving cleanup client checks to Hub.
12 years ago
Simon Eisenmann
02a6ae2a2b
Fixed a problem where replaced sessions got cleaned up i a previous connection was still closing.
12 years ago
Simon Eisenmann
553323a864
Implemented authorizeRoomJoin flag. Set this to allow only authenticated users to join rooms.
12 years ago
Simon Eisenmann
f8a44d1add
Fixed deadlock when authorizeRoomCreation=true.
12 years ago
Simon Eisenmann
f60cd1fab3
Use same variable name roomID everywhere.
12 years ago
Simon Eisenmann
076bcdb271
Added modules section to config file to allow to disable screensharing, youtube and presentation support.
12 years ago
Simon Eisenmann
480df9f339
Fixed typo in filename.
12 years ago
Lance Cooper
6bcd814c1f
Move all session cleanup code to a single code path.
...
This should resolve any cases where sessions were not removed from the hub
after their connection closed.
Also moves buddy image management entirely into the session and
vastly improves locking around session data. Also allocates less
when sending client left messages and paves the way for session specific
message codecs.
12 years ago
Simon Eisenmann
e251a95398
Added a disconnected marker to sessions.
12 years ago
Simon Eisenmann
65c2ca2275
Removed duplicated log detail.
12 years ago
Simon Eisenmann
e2cfbf7803
Expose authorizeRoomCreation flag to web client.
12 years ago
Simon Eisenmann
3fcca78182
Added support to enable Content-Security-Policy and Content-Security-Policy-Report-Only.
...
Export Csp boolean flag in global context (true if CSP is enabled).
Load extra styles if CSP is enabled.
12 years ago
Lance Cooper
1f09f72bd2
Server side support for requiring a user account to create rooms.
...
Also streamlines error creations.
12 years ago
Lance Cooper
7509511704
Use config directly in room manager and centralize config loading.
12 years ago
Lance Cooper
31e4f2c0c0
Add support for PIN locking rooms to the server.
12 years ago
Lance Cooper
2d52d933bc
Support receiving and broadcasting room update events.
12 years ago
Lance Cooper
910dd71b81
Use room document from Welcome rather than synthesizing a response.
12 years ago