Commit Graph

81 Commits

Author SHA1 Message Date
Alex Renoki 5997dd4df8 wip docblocks 2020-08-14 08:42:17 +03:00
Alex Renoki 7053600ed0 Merge branch 'refactor/tests' of github.com:beyondcode/laravel-websockets into refactor/pubsub-replication-tests 2020-08-13 20:03:30 +03:00
Alex Renoki d76d7bbe67 Merge branch 'master' of github.com:beyondcode/laravel-websockets into 2.x 2020-08-13 20:02:29 +03:00
Alex Renoki 0ebf223584 Renamed the prop to replicator 2020-08-13 19:27:24 +03:00
Alex Renoki 8b15897f63 Allow missing user_info on presence channels 2020-08-13 19:17:06 +03:00
Alex Renoki 51f84e3c40 set up tests 2020-08-13 16:18:14 +03:00
rennokki aa1c11e149
Merge branch 'master' into redis-replication 2020-08-13 09:59:01 +03:00
Freek Van der Herten fa0bd1c9ef
Apply fixes from StyleCI (#329) 2020-03-04 10:58:39 +01:00
Francis Lavoie 5979f63af6
StyleCI fixes 2019-09-23 15:36:09 -04:00
Francis Lavoie ef86f86668
Attempt at making TriggerEventController also publish to other servers 2019-09-23 15:36:09 -04:00
Francis Lavoie 990a075b20
Avoid calls to app() 2019-09-23 15:36:09 -04:00
Francis Lavoie 00e8f3e1a8
Add channel storage to LocalDriver to simplify PresenceChannel logic 2019-09-23 15:36:09 -04:00
Arthur Vandenberghe 11e1f89b5e
Merge pull request #1 from deviouspk/analysis-z3nD5L
Apply fixes from StyleCI
2019-09-23 15:36:09 -04:00
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