Commit Graph

581 Commits

Author SHA1 Message Date
Francis Lavoie 5cb398f672
Update AppManager.php 2020-09-04 09:23:24 -04:00
Francis Lavoie c51a9806cb
Update App.php 2020-09-04 09:23:03 -04:00
Alex Renoki 0cb0e6c3b7 Added local driver as default 2020-09-04 12:00:04 +03:00
Alex Renoki 037500004d Remove duplicated method. 2020-09-04 11:58:01 +03:00
Alex Renoki b9dfecab68 Using separate connection counts for global & local. 2020-09-04 11:34:33 +03:00
Alex Renoki e9ec650010 Removed $redis from RedisClient 2020-09-04 09:49:14 +03:00
Alex Renoki a45c0bf9cc Using the Redis non-blocking client. 2020-09-04 09:47:23 +03:00
Francis Lavoie 1389b6ca0a
Update ConfigAppManager.php 2020-09-03 21:11:45 -04:00
Francis Lavoie 349fb54ae6
Update AppManager.php 2020-09-03 21:10:50 -04:00
Francis Lavoie 25ff1d668c
Fix docblocks in App
Frankly, I don't understand why the typing was removed from these methods in https://github.com/beyondcode/laravel-websockets/pull/471, seems like a strange decision.
2020-09-03 21:10:00 -04:00
Alex Renoki 21db4b3252 Using the concatenated string for the config retrieve 2020-09-03 16:50:55 +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 ebfab2efd0 Fixed wrong keys names. 2020-09-03 07:04:05 +03:00
Alex Renoki 9938cf6ae2 Moved the statistics logger to the replication driver 2020-09-03 06:59:01 +03:00
rennokki fd46b0cb0b
Apply fixes from StyleCI (#496) 2020-09-02 16:16:57 +02:00
Alex Renoki 545501d575 Added events for sub/unsub/messages sent 2020-09-02 17:16:34 +03:00
Alex Renoki 0596d1ad48 Revert "Making channels easily extendable by replacing contents with traits."
This reverts commit 97e215b68e.
2020-09-02 15:06:28 +03:00
Alex Renoki 204f6cb90c Fix typo 2020-09-02 14:49:58 +03:00
rennokki a8764bd293
Apply fixes from StyleCI (#494) 2020-09-02 13:45:10 +02:00
Alex Renoki 97e215b68e Making channels easily extendable by replacing contents with traits. 2020-09-02 14:44:44 +03:00
Alex Renoki 3e239a0728 Added custom handlers for all registered routes. 2020-09-02 11:57:52 +03:00
Alex Renoki f1a14fbd1d Passing $appId on createRecord() 2020-08-30 21:23:06 +03:00
Alex Renoki 1923ceedea Moved the create record into a separate method. 2020-08-30 20:07:24 +03:00
Alex Renoki 5b6bdf49e4 Added configurable client for each replication driver. 2020-08-28 19:44:54 +03:00
Alex Renoki 00faff7f04 Setting defaults to current connection count 2020-08-28 14:11:09 +03:00
Alex Renoki ee8681a459 Use a RedisLock to avoid race conditions. 2020-08-27 22:28:22 +03:00
rennokki edcc2f9582
Apply fixes from StyleCI (#491) 2020-08-27 21:13:50 +02:00
Alex Renoki 70eeb005ef Added redis logger 2020-08-27 22:13:19 +03:00
Alex Renoki 66252c1294 Renamed path to Concerns 2020-08-27 21:57:58 +03:00
Alex Renoki 1616321d44 Fixed double broadcasting. 2020-08-27 14:35:29 +03:00
rennokki 4aec422ea9
Apply fixes from StyleCI (#489) 2020-08-27 13:13:37 +02:00
Alex Renoki a897ce2cd3 Fixed backend streaming 2020-08-27 14:13:17 +03:00
Alex Renoki c79bac07c4 Fixed the subscribed topic names 2020-08-24 14:06:58 +03:00
Alex Renoki 3f8bb62291 Enforce stdclass typehint 2020-08-24 13:40:01 +03:00
Alex Renoki 8e3a86d2ed Spacing 2020-08-24 12:43:59 +03:00
Alex Renoki d6b6135d7c Removed $this->connection from RedisPusherBroadcaster 2020-08-24 12:42:01 +03:00
Alex Renoki e67fe3828d Avoid taking null into consideration. 2020-08-24 11:50:02 +03:00
Alex Renoki 4bfed3310c removed trailing comma 2020-08-24 09:10:50 +03: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 2a6d91aaf7 Added tests for statistics loggers drivers 2020-08-23 13:40:18 +03:00
Alex Renoki 108a717c0a Fixed inconsistency by not passing $appId to all methods 2020-08-23 13:39:59 +03:00
Alex Renoki 714cc5b22d The get() method accepts Request or nuill 2020-08-23 13:38:56 +03:00
Alex Renoki b00e19e7af wip 2020-08-22 22:22:45 +03:00
Alex Renoki 92870c088a wip 2020-08-22 21:54:48 +03:00
Alex Renoki b5f081c537 typo 2020-08-22 20:37:00 +03:00
Alex Renoki 70ce44e635 Replacing event with continously statistics polling 2020-08-20 11:27:55 +03:00
Alex Renoki f9cf723c0e Disabled broadcast() 2020-08-20 08:50:42 +03:00
Alex Renoki 8b5cd7657b Reverted statistics reset. 2020-08-20 08:50:22 +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 ed96e24f6a Resetting statistics after processing them 2020-08-19 20:55:20 +03:00
Alex Renoki da7fe0cf60 Typo 2020-08-19 19:56:34 +03:00
Alex Renoki 0902d43244 Added missing tap() 2020-08-19 19:49:56 +03:00
Alex Renoki ca8fb5355b Merge branch 'master' of github.com:beyondcode/laravel-websockets into 2.x 2020-08-19 09:41:38 +03:00
rennokki bbd48d3c72
Merge pull request #414 from Tofandel/master
Fix multiple routes not working when Logger enabled beyondcode#412
2020-08-19 09:40:55 +03:00
Alex Renoki 3123f25cbc Renamed HttpStatisticsLogger with MemoryStatisticsLogger (because it stores it in-memory) 2020-08-19 09:00:53 +03:00
Alex Renoki fd82904a9e Updated test for the start command 2020-08-18 23:09:12 +03:00
rennokki 85648964d2
Apply fixes from StyleCI (#472) 2020-08-18 20:22:52 +02:00
Alex Renoki 3e521268d4 Added customizable driver for the store 2020-08-18 21:22:29 +03:00
rennokki f83a669000
Apply fixes from StyleCI (#470) 2020-08-18 19:21:44 +02:00
Alex Renoki 0b412cd98e added docblocks 2020-08-18 20:21:22 +03:00
Alex Renoki 13e5e6ad6c Merge branch '2.x' of github.com:beyondcode/laravel-websockets into refactor/cors 2020-08-18 16:08:30 +03:00
Alex Renoki 11727e684f Added cors setting outside the app 2020-08-18 16:04:52 +03:00
Alex Renoki ffcc772ec8 Updated docs 2020-08-18 15:29:49 +03:00
rennokki b174ffb6e7
Merge pull request #467 from beyondcode/refactor/dashboard
[2.x] Refactoring dashboard
2020-08-18 09:44:18 +03:00
Alex Renoki a9111ab415 refactored dashboard frontend 2020-08-18 09:35:09 +03:00
Alex Renoki 417c8322e0 updated pubsub messages 2020-08-17 21:24:18 +03:00
Alex Renoki c622f77351 Added missing statistics logger. 2020-08-17 21:20:50 +03:00
rennokki 871c942dd9
Apply fixes from StyleCI (#466) 2020-08-17 20:18:55 +02:00
Alex Renoki 09776a1828 Refactored the statistics logger 2020-08-17 21:17:00 +03:00
Alex Renoki 5890659102 Refactored the dashboard logger 2020-08-17 21:06:51 +03:00
Alex Renoki 13978cb824 Added extension for the websocket handler 2020-08-17 13:25:01 +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 4c64493bc1 Improved loggin display 2020-08-14 14:14:08 +03:00
Alex Renoki 22fcddb050 docblocks 2020-08-14 13:53:14 +03:00
Alex Renoki 4c23363c14 wip dashboard logger 2020-08-14 09:14:14 +03:00
Alex Renoki 5997dd4df8 wip docblocks 2020-08-14 08:42:17 +03:00
Alex Renoki 14f54dac62 $this->app->make 2020-08-13 22:05:57 +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
rennokki 1227bc80d3
Merge pull request #454 from RohanSakhale/schema-check-breaks
Schema check breaks
2020-08-13 19:43:30 +03:00
rennokki a18ef0c6c6
wip naming 2020-08-13 19:35:37 +03:00
Chaitali Sakhale aced9114cc Force migration to a fixed path 2020-08-13 21:58:57 +05:30
Alex Renoki 0ebf223584 Renamed the prop to replicator 2020-08-13 19:27:24 +03:00
Alex Renoki 4389fd1360 Added soft default to replication driver check 2020-08-13 19:20:29 +03:00
Alex Renoki 8b15897f63 Allow missing user_info on presence channels 2020-08-13 19:17:06 +03:00
Chaitali Sakhale d2feddd7a6 StyleCI fixed again 2020-08-13 21:09:14 +05:30
Chaitali Sakhale 94f24be368 StyleCI fixed 2020-08-13 21:07:38 +05:30
Chaitali Sakhale 84ef4ce14e Breaking fix for composer update 2020-08-13 21:02:31 +05:30
Alex Renoki 51f84e3c40 set up tests 2020-08-13 16:18:14 +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
rennokki edcecff9af
Merge branch 'master' into 2.x 2020-08-13 15:25:03 +03:00
Alex Renoki 4e9b526648 $this->laravel 2020-08-13 15:16:30 +03:00
Alex Renoki 099d90b885 Renamed AppProvider to AppManager 2020-08-13 14:51:18 +03:00
Alex Renoki 679a8d097a Fixed logger 2020-08-13 14:40:19 +03: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
Alex Renoki 8c393c76c3 wip 2020-08-13 13:34:12 +03:00
Alex Renoki 765e772d76 wip 2020-08-13 13:22:58 +03:00
rennokki d11daad638
Merge pull request #284 from zaxxo/master
[feature] Add restart command for WebSocket server
2020-08-13 12:25:56 +03:00
zaxxo-dkraemer 0915132369 Add restart command for WebSocket server 2020-08-13 10:09:55 +02:00
rennokki 6e851971c8
Update WebSocketsServiceProvider.php 2020-08-13 10:20:31 +03:00
Alex Renoki 0364c7d61d Merge branch 'feature/custom-http-stats-logger' of github.com:beyondcode/laravel-websockets into feature/custom-http-stats-logger 2020-08-13 10:17:37 +03:00
Alex Renoki 10c2a06086 wip 2020-08-13 10:17:34 +03:00
rennokki 73dfa02f3d
Apply fixes from StyleCI (#441) 2020-08-13 09:16:15 +02:00
Alex Renoki 5e0ec9e6a1 Added defined http logger class in the config 2020-08-13 10:15:52 +03:00
rennokki b2b2961f0e
Revert "Add support for overriding stats logger's base URL" 2020-08-13 10:09:09 +03:00
rennokki 9d8e2ff323
Merge pull request #115 from francislavoie/stats-url
Add support for overriding stats logger's base URL
2020-08-13 10:03:56 +03:00
rennokki aa1c11e149
Merge branch 'master' into redis-replication 2020-08-13 09:59:01 +03:00
rennokki 10208671bb
csfixing 2020-08-13 09:49:09 +03:00
rennokki 371bf5418c
inline if 2020-08-13 09:47:55 +03:00
rennokki 99c6c06897
formatting 2020-08-13 08:32:20 +03:00
rennokki a752fb9ecc
formatting 2020-08-13 08:30:24 +03:00
robindrost 13d8d9491d
Update WebSocketsServiceProvider.php
Add missing space.
2020-08-12 12:29:32 +02:00
robindrost dd05008dd2
Update WebSocketsServiceProvider.php
Namespace import order.
2020-08-12 12:28:56 +02:00
robindrost 5b11224865
Update WebSocketsServiceProvider.php
Add missing {
2020-08-12 12:27:53 +02:00
robindrost c735e70009
Update WebSocketsServiceProvider.php
Add missing ;.
2020-08-12 12:27:04 +02:00
robindrost 8285f6da17
Update WebSocketsServiceProvider.php
Use schema check instead of class name check.
2020-08-12 12:26:07 +02:00
Adrien Foulon 2fe5d60972
Fix multiple routes not working when Logger enabled beyondcode#412 2020-07-04 15:51:24 +02:00
robindrost 45d951c56b
Update statistics table name check
Class name was missing Table, this result into creating new migrations everytime you publish the package.
2020-06-30 14:48:28 +02:00
Freek Van der Herten 6c741d8693
Merge pull request #306 from godkinmo/master
fix ws path not work in debug dashboard
2020-03-04 11:04:31 +01:00
Freek Van der Herten fa0bd1c9ef
Apply fixes from StyleCI (#329) 2020-03-04 10:58:39 +01:00
Jack Fong 24101e456f fix ws path not work in debug dashboard 2020-01-24 19:24:01 +08:00
Francis Lavoie e3c0cea77c
Fix tests failing on older versions of Laravel 2019-09-23 15:36:09 -04: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 091f56ea15
Simplify controller logic due to PresenceChannel logic changes 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
anthony 373b993e64
rename emptyclient to localclient 2019-09-23 15:36:09 -04:00
anthony f2b3347f89
resolve app from local variables in console 2019-09-23 15:36:09 -04:00
anthony 060b986058
resolve app from local variables 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 d43ac821d9
remove test code 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 ed5503407e
Fix mistake during rebase 2019-09-23 15:35:12 -04:00
Francis Lavoie faf2c75d3d
Fix redis-pusher broadcast driver, wrong params for extend() callable 2019-09-23 15:35:12 -04:00