Commit Graph

211 Commits

Author SHA1 Message Date
Alex Renoki ea9741072b Fixed tests 2020-09-04 21:50:38 +03:00
rennokki d20adcd2c0
Apply fixes from StyleCI (#502) 2020-09-04 16:51:12 +02:00
Alex Renoki e6cfa85472 Replaced blocking Redis instance with non-blocking I/O client 2020-09-04 17:50:49 +03:00
Alex Renoki b9dfecab68 Using separate connection counts for global & local. 2020-09-04 11:34:33 +03:00
rennokki 855646a5a7
Apply fixes from StyleCI (#500) 2020-09-04 08:47:46 +02:00
Alex Renoki a45c0bf9cc Using the Redis non-blocking client. 2020-09-04 09:47:23 +03:00
Alex Renoki d5a90d8440 Using the built-in Redis cache connection to handle non-pubsub features. 2020-09-03 16:50:37 +03:00
Alex Renoki fadb3fc123 Added redis connection counter. 2020-09-03 16:31:19 +03:00
Alex Renoki e9b85bbfc7 Fixed tests 2020-09-03 07:33:45 +03:00
Alex Renoki 0dfa682c97 Revert "Moved all websockets testing related stuff into a concern"
This reverts commit aa014add21.
2020-08-31 11:06:14 +03:00
Alex Renoki bb5599f6cd Revert "Fixed tests"
This reverts commit 6ddf5900e2.
2020-08-31 11:05:41 +03:00
Alex Renoki 6ddf5900e2 Fixed tests 2020-08-31 10:22:41 +03:00
Alex Renoki c6c3877cf7 app() 2020-08-30 21:22:07 +03:00
Alex Renoki aa014add21 Moved all websockets testing related stuff into a concern 2020-08-30 20:01:08 +03:00
Alex Renoki e099c46a0d docblocks 2020-08-30 20:00:45 +03:00
rennokki 08110b652e
Apply fixes from StyleCI (#493) 2020-08-28 18:45:18 +02:00
Alex Renoki 5b6bdf49e4 Added configurable client for each replication driver. 2020-08-28 19:44:54 +03:00
Alex Renoki a5af8b5afa Fixed tests 2020-08-27 23:04:22 +03:00
Alex Renoki 62fc523cfc Fixed tests 2020-08-27 22:40:10 +03:00
rennokki edcc2f9582
Apply fixes from StyleCI (#491) 2020-08-27 21:13:50 +02:00
Alex Renoki 0c8c5c0d9b Moved the mocks statistics loggers to Mocks/ 2020-08-27 22:13:30 +03:00
Alex Renoki 70eeb005ef Added redis logger 2020-08-27 22:13:19 +03:00
Alex Renoki fe01abd5c1 Fixed tests 2020-08-27 14:26:14 +03:00
Alex Renoki a897ce2cd3 Fixed backend streaming 2020-08-27 14:13:17 +03:00
Alex Renoki d410c0264f Fixed tests 2020-08-24 14:16:21 +03:00
Alex Renoki f3b706de52 wip 2020-08-24 09:39:05 +03:00
rennokki cd8e53c69d
Apply fixes from StyleCI (#486) 2020-08-24 08:04:14 +02:00
Alex Renoki f742981729 Merge branch 'code-coverage' of github.com:beyondcode/laravel-websockets into code-coverage 2020-08-24 09:03:55 +03:00
Alex Renoki afa8af5ddc Added tests for send message 2020-08-24 09:03:52 +03:00
rennokki 3ce7eff44d
Apply fixes from StyleCI (#484) 2020-08-23 19:41:38 +02:00
Alex Renoki c6b3c07510 Merge branch 'code-coverage' of github.com:beyondcode/laravel-websockets into code-coverage 2020-08-23 20:41:20 +03:00
Alex Renoki 499a153a0a wip 2020-08-23 20:41:17 +03:00
rennokki 82aacc7c4d
Apply fixes from StyleCI (#483) 2020-08-23 18:12:46 +02:00
Alex Renoki f62ac8fd56 wip 2020-08-23 19:12:22 +03:00
Alex Renoki b46cfadaa2 wip 2020-08-23 18:34:29 +03:00
Alex Renoki 3fcfe1bb39 Added test for app_id 2020-08-23 13:44:09 +03:00
Alex Renoki 2a6d91aaf7 Added tests for statistics loggers drivers 2020-08-23 13:40:18 +03:00
rennokki 94d13b4877
Apply fixes from StyleCI (#481) 2020-08-22 20:55:09 +02:00
Alex Renoki 92870c088a wip 2020-08-22 21:54:48 +03:00
Alex Renoki ce652bbbcb Mocked message expects array 2020-08-22 20:53:33 +03:00
rennokki b1597bb836
Apply fixes from StyleCI (#476) 2020-08-19 21:40:02 +02:00
Alex Renoki 99b55411c1 Removed controller that sends out the statistics 2020-08-19 22:39:38 +03:00
Alex Renoki 3123f25cbc Renamed HttpStatisticsLogger with MemoryStatisticsLogger (because it stores it in-memory) 2020-08-19 09:00:53 +03:00
rennokki 850ebe57dc
Apply fixes from StyleCI (#474) 2020-08-18 23:02:25 +02:00
Alex Renoki e34c7e8db1 Added a redis driver test 2020-08-19 00:02:02 +03:00
Alex Renoki a36d3366f1 Enforce DNS lookup on testing 2020-08-18 23:22:10 +03:00
Alex Renoki 0b412cd98e added docblocks 2020-08-18 20:21:22 +03:00
Alex Renoki 02bf273cb4 fixed tests 2020-08-18 16:07:35 +03:00
Alex Renoki 11727e684f Added cors setting outside the app 2020-08-18 16:04:52 +03:00
Alex Renoki 13978cb824 Added extension for the websocket handler 2020-08-17 13:25:01 +03:00
rennokki b1e6b6ecc5
Apply fixes from StyleCI (#463) 2020-08-17 10:48:14 +02:00
Alex Renoki 04ff39d75e wip 2020-08-17 11:47:50 +03:00
Alex Renoki b7a00baaaa wip incomplete tests 2020-08-14 20:26:55 +03:00
Alex Renoki 92dd8f4f30 skipped some tests until further addo 2020-08-14 19:53:30 +03:00
Alex Renoki 4ae3d81675 assert publish 2020-08-14 16:18:01 +03:00
Alex Renoki 04cc2e7366 missing class 2020-08-14 16:03:12 +03:00
rennokki 939ae17604
Apply fixes from StyleCI (#462) 2020-08-14 14:52:42 +02:00
Alex Renoki 0fdc0bc752 Merge branch 'refactor/pubsub-replication-tests' of github.com:beyondcode/laravel-websockets into refactor/pubsub-replication-tests 2020-08-14 15:52:15 +03:00
Alex Renoki 50f0b70e64 wip 2020-08-14 15:51:57 +03:00
rennokki 5c3e87ecca
Apply fixes from StyleCI (#461) 2020-08-14 14:36:00 +02:00
Alex Renoki 25694c7146 wip 2020-08-14 15:35:36 +03:00
Alex Renoki 22fcddb050 docblocks 2020-08-14 13:53:14 +03:00
Alex Renoki 7458c3e09b Emptied tests for replication 2020-08-14 09:43:47 +03:00
Alex Renoki 5838acad30 Set up config for broadcasting 2020-08-13 22:52:12 +03:00
Alex Renoki 14f54dac62 $this->app->make 2020-08-13 22:05:57 +03:00
Alex Renoki 00b3edf55a Added Illuminate\Broadcasting\BroadcastServiceProvider 2020-08-13 21:51:16 +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 4c676cba8a Merge branch '2.x' of github.com:beyondcode/laravel-websockets into refactor/tests 2020-08-13 20:02:46 +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 65ae998aed Renamed the migration file on publish & loadMigrationsFrom() 2020-08-13 19:51:09 +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
Alex Renoki 64b0fa8382 Removed the setupReplication trait 2020-08-13 16:16:39 +03:00
Alex Renoki 279dd62a31 Merge branch '2.x' of github.com:beyondcode/laravel-websockets into refactor/tests 2020-08-13 15:46:11 +03:00
Alex Renoki 099d90b885 Renamed AppProvider to AppManager 2020-08-13 14:51:18 +03:00
rennokki 16446309ca
Apply fixes from StyleCI (#449) 2020-08-13 13:25:10 +02:00
Alex Renoki 344dfa7f96 Added --test for websockets:serve command 2020-08-13 14:21:06 +03:00
rennokki 815eabc801
Apply fixes from StyleCI (#448) 2020-08-13 13:02:58 +02:00
rennokki 1bfbbdb558
Merge branch '2.x' into redis-replication 2020-08-13 13:51:26 +03:00
zaxxo-dkraemer 0915132369 Add restart command for WebSocket server 2020-08-13 10:09:55 +02: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
freek c8eea9bdc9 wip 2020-03-04 10:58:17 +01:00
Francis Lavoie db5837831b
Fix test warnings due to usage of deprecated assertArraySubset()
Also changed app_id to strings where appropriate, in real apps they should be strings when read from environment, not ints.
2019-09-23 15:51:43 -04:00
Francis Lavoie e259cac51e
Remove duplicate client mock client, simplify test trait 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 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
Catzilla d145cd4160 Fixed channels HTTP API endpoint (#127)
* Fixed channels HTTP API endpoint
2019-05-11 08:52:04 +02: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
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
Alex Bouma 83dec0b5f1 Fix signature validation (#38)
* Add failing test

* Fix signature validation

* Fix tests to generate correct signatures

*  StyleCI fix

* Ignore route params when validating the signature

* Fix tests to add route params next to signature

* StyleCI fixes
2019-01-02 22:30:57 +01:00
Alex Bouma 0a0c1249eb
Add test 2018-12-07 20:42:20 +01:00
Syed I.R 3559b7db4f Fix Namespace 2018-12-07 01:25:48 +05:30
Marcel Pociot 9ce2cc3ff7
Apply fixes from StyleCI (#3) 2018-12-04 22:22:33 +01:00
freek b3e5df4835 fix test 2018-12-04 22:20:08 +01:00
freek cc8f8a8168 Merge branch 'master' of github.com:beyondcode/laravel-websockets 2018-12-04 21:07:46 +01:00
freek 0da29ee716 wip 2018-12-04 21:07:35 +01:00
Marcel Pociot 3b2957facd Broadcast client messages to others only 2018-12-04 21:04:19 +01:00