Simon Eisenmann
3804c74277
Make sure to send session close messages to subscriptions too to notify both ways.
11 years ago
Simon Eisenmann
d5323d2610
Fixed an issue where replaced sessions cannot receive data from contacts in other rooms.
11 years ago
Simon Eisenmann
56b2aa093e
Ignore incoming channelling messages larger than 1MB.
11 years ago
Simon Eisenmann
a64e977aa6
Fixed authentication success userid log.
11 years ago
Simon Eisenmann
84c7be8fe3
Close websocket connection outside connection lock.
11 years ago
Simon Eisenmann
7b418e2c2c
Avoid to defer replace and close.
11 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.
11 years ago
Simon Eisenmann
457eabf23f
Contacts can now be disabled on server module level (server.conf).
11 years ago
Simon Eisenmann
eb1ecce7e0
Avoid the need for another mutex in Client by moving cleanup client checks to Hub.
11 years ago
Simon Eisenmann
02a6ae2a2b
Fixed a problem where replaced sessions got cleaned up i a previous connection was still closing.
11 years ago
Simon Eisenmann
553323a864
Implemented authorizeRoomJoin flag. Set this to allow only authenticated users to join rooms.
11 years ago
Simon Eisenmann
f8a44d1add
Fixed deadlock when authorizeRoomCreation=true.
11 years ago
Simon Eisenmann
f60cd1fab3
Use same variable name roomID everywhere.
11 years ago
Simon Eisenmann
076bcdb271
Added modules section to config file to allow to disable screensharing, youtube and presentation support.
11 years ago
Simon Eisenmann
480df9f339
Fixed typo in filename.
11 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.
11 years ago
Simon Eisenmann
e251a95398
Added a disconnected marker to sessions.
11 years ago
Simon Eisenmann
65c2ca2275
Removed duplicated log detail.
11 years ago
Simon Eisenmann
e2cfbf7803
Expose authorizeRoomCreation flag to web client.
11 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.
11 years ago
Lance Cooper
1f09f72bd2
Server side support for requiring a user account to create rooms.
...
Also streamlines error creations.
11 years ago
Lance Cooper
7509511704
Use config directly in room manager and centralize config loading.
11 years ago
Lance Cooper
31e4f2c0c0
Add support for PIN locking rooms to the server.
11 years ago
Lance Cooper
2d52d933bc
Support receiving and broadcasting room update events.
11 years ago
Lance Cooper
910dd71b81
Use room document from Welcome rather than synthesizing a response.
11 years ago
Lance Cooper
74602d43d5
Add Room document and send it back in response to room joins.
11 years ago
Lance Cooper
f7bcfd61a1
Add server support for responding with Welcome to a Hello.
11 years ago
Lance Cooper
713a2b903b
Major refactoring of server side code to allow isolated unit tests.
...
In addition to adding unit tests for the "Hello" message,
the following notable improvements are included:
* Separate websocket callbacks from the hub via a handler API
and adaptor.
* Move all application specific state to the session.
* Session no longer refers to the hub.
* Remove redundant MessageRequest struct.
* Hub is no longer responsible for buffer pool or
buddy image management.
* Consolidated connection table locking in the hub.
* Remove redundant session table from the hub.
* Split room join and leave into separate handlers.
This also removes the RoomConnectionUpdate struct.
* Entirely remove room management from the hub.
This also provides room operations with a separate mutex.
* Split stats into a separate service.
* Simplify the session token handler.
* Buddy image HTTP handler no longer takes the entire hub.
* Centralize JSON encoding and decoding. This removes JSON
encoding from the room worker queue.
* Improve unicast message statistics.
* Numerous other renamings and cleanup items.
11 years ago
Simon Eisenmann
f77e7b807a
Do not send Status as null.
11 years ago
Simon Eisenmann
c635b5db59
Create only one fake session per userid,
11 years ago
Simon Eisenmann
e39b08b79f
Implemented location sharing.
11 years ago
Simon Eisenmann
724c4d27e5
Implemented fake sessions.
11 years ago
Simon Eisenmann
0424635e15
Implemented session subscription.
11 years ago
Simon Eisenmann
0c37d4851f
Decode secrets as hex and recommend in configuration comments to generate secrets as hex values with example on how to do it.
11 years ago
Simon Eisenmann
a47884f7fb
Added fine grained control to HTTP and HTTPS listeners.
11 years ago
Simon Eisenmann
e926b69bb5
Validate secret lengths on startup.
11 years ago
Simon Eisenmann
45a6ef0bb7
Fixed log to stdout.
11 years ago
Simon Eisenmann
31069ef041
Cleanups.
11 years ago
Simon Eisenmann
8c0afbe0b0
Avoid to receive/send own attestations.
11 years ago
Simon Eisenmann
24ad6ffe49
Refactored attestation server side and implemented automatic expiry and refresh.
11 years ago
Simon Eisenmann
27a08dc006
Implemented fake data lookup using attestation token.
11 years ago
Simon Eisenmann
b65d2e10df
Added attestation data.
11 years ago
Simon Eisenmann
4780e79a5e
Added Prio and stap to sessions.
11 years ago
Simon Eisenmann
fe67adf965
Added priority to sessions.
11 years ago
Simon Eisenmann
10c6f25463
Simplified default room checks.
11 years ago
Simon Eisenmann
73ebac440c
Implemented working client side sessions lookup.
11 years ago
Simon Eisenmann
3204c329bc
Implementd client side lookup support.
11 years ago
Simon Eisenmann
e6f2182e49
Implemented client side sessions request.
11 years ago
Simon Eisenmann
e5aeda31d9
Fixed userid matching for sessions lookup.
11 years ago
Simon Eisenmann
19cc75c0fe
Implemented server sessions lookup.
11 years ago