Commit Graph

68 Commits

Author SHA1 Message Date
anthony 6e68d3d144
one line var doc 2019-09-23 15:36:09 -04:00
anthony d7c30f3b0f
cleanup & refactor of pubsub code 2019-09-23 15:35:43 -04:00
Francis Lavoie b7ae9bac4a
Add tests for replication, fix bugs in the implementation 2019-09-23 15:35:12 -04:00
Francis Lavoie 4baac7ef00
Implement presence channel storage in Redis 2019-09-23 15:35:12 -04:00
Francis Lavoie eca8c7b846
Scope pub/sub channels in Redis by appId to avoid crosstalk between apps 2019-09-23 15:35:12 -04:00
Francis Lavoie 668cd29df0
Fix style issues reported by StyleCI 2019-09-23 15:35:12 -04:00
Francis Lavoie e454f53eaa
Initial implementation of Redis as a pub/sub backend, WIP
TODO:
- Presence channels need the user lists stored in Redis (tricky, requires a lot of changes and async code in HTTP controllers)
- Channels in Redis should be scoped by the app ID
2019-09-23 15:35:12 -04:00
Francis Lavoie c203d24469
Clean up some typos, add some type hints, StyleCI fixes 2019-09-23 15:34:55 -04:00
Sam Snelling b584d0cacb
Update with pub sub replication and redis driver 2019-09-23 15:34:42 -04:00
Ahmed Al-Shahawi aecbfeebe7 Add the ability to limit the maximum concurrent connections per appli… (#143)
* Add the ability to limit the maximum concurrent connections per application

Co-Authored-By: AlShahawi <alshahawi@outlook.com>
2019-05-11 08:48:33 +02:00
Alex Bouma 5e84ef1ddc Fix connection counting (#74)
* Fix connection counting

* Remove unused method from FakeStatisticsLogger

* Add tests for testing the connection counting

* StyleCI fixes

* Do not use Laravel 5.7.10 testing helper

* CS
2019-05-11 08:40:45 +02:00
Marcel Pociot d2146f7977 fix ability to recursively call the respond method. Fixes #173 2019-05-11 08:39:03 +02:00
Francis Lavoie 3ec6c0ade3 Add support for Laravel 5.8 (#122)
* Fix Laravel 5.8 compatibility

* Use Arr:: and Str:: instead of global helpers

* Remove testbench-core dependency, release was tagged
2019-02-27 15:27:21 +01:00
Sam Snelling ec96ca7172 Update ChannelManager (#41)
* Update Channel Manager

Switch ChannelManager to an interface. Extend with an ArrayChannelManager (and copy the code). Update the config to allow for swapping. Bind it to the ServiceProvider

* Add a fallback if the config variable isn’t set

* Fix StyleCI

* Fix StyleCI line break

* Add description for the ChannelManager option
2018-12-10 20:47:52 +01:00
Marcel Pociot 9ce2cc3ff7
Apply fixes from StyleCI (#3) 2018-12-04 22:22:33 +01:00
freek 7bc6e32a76 wip 2018-12-04 21:12:10 +01:00
Marcel Pociot 3b2957facd Broadcast client messages to others only 2018-12-04 21:04:19 +01:00
Marcel Pociot e1eecbc4e2 wip 2018-12-04 08:46:25 +01:00
freek 6c96bb8edc wip 2018-12-03 23:52:39 +01:00
Marcel Pociot 533f8a53ba wip 2018-12-03 22:11:44 +01:00
freek 9636f7de6b rename 2018-12-03 16:23:20 +01:00
freek 3d94b97158 wip 2018-12-03 14:35:00 +01:00
Marcel Pociot dc8441be4a wip 2018-12-03 13:33:20 +01:00
Marcel Pociot 18bea0529d wip 2018-12-03 13:27:45 +01:00
freek f617240543 formatting 2018-12-03 11:25:09 +01:00
Marcel Pociot 5303d4553c Log disconnect 2018-12-03 11:10:02 +01:00
freek ebd07e6bdb use clientMessagesEnabled 2018-12-01 15:59:46 +01:00
freek d7c6321d51 improve name 2018-12-01 15:21:31 +01:00
freek 54ee17c6b2 rename 2018-12-01 15:10:01 +01:00
freek c9ec730dd4 rename 2018-12-01 15:09:05 +01:00
freek 7d97f49a2a rename message classes 2018-12-01 14:56:16 +01:00
freek 279deeeb7c rename client to app 2018-12-01 14:12:15 +01:00
freek e90e86798c renaming clients to apps 2018-12-01 13:57:02 +01:00
freek 0bff2f9f14 improve method name 2018-12-01 13:40:18 +01:00
freek 8648a182b3 rename channel id to channel name 2018-12-01 12:41:58 +01:00
freek acaa7aa205 reformat 2018-12-01 12:27:36 +01:00
freek 84dad775e5 replace channel id with channel name 2018-12-01 12:26:08 +01:00
freek 81bbf83aa5 nitpick 2018-12-01 11:52:47 +01:00
freek 5eb2251b01 nitpick 2018-12-01 11:52:29 +01:00
freek 19fb3b418f simplify newing up the channel 2018-12-01 11:52:02 +01:00
freek 803864c8cd nitpick 2018-11-30 17:24:55 +01:00
Marcel Pociot 8bc6893eec wip 2018-11-29 16:42:26 +01:00
Marcel Pociot bdef2c29a9 wip 2018-11-29 16:41:27 +01:00
Marcel Pociot 606f09f444 wip 2018-11-29 11:59:17 +01:00
freek 2c61a798f8 wip 2018-11-29 00:22:01 +01:00
freek 362ba7d5d8 nitpicks 2018-11-28 21:20:07 +01:00
freek 20991af127 nitpick 2018-11-28 21:07:07 +01:00
freek 7fdcbe13ef moarrr randomness 2018-11-28 20:38:04 +01:00
freek 48ab69ee18 moarrr randomness 2018-11-28 20:36:06 +01:00
Marcel Pociot 2ce9daea94 wip 2018-11-28 17:09:50 +01:00