Commit Graph

663 Commits

Author SHA1 Message Date
Alex Renoki 19ca49a4a8 wip formatting 2020-12-07 20:48:15 +02:00
Alex Renoki 8308a7d16d formatting 2020-12-07 20:36:39 +02:00
Alex Renoki 6be62b149d Reverted connections count 2020-12-07 20:18:58 +02:00
Alex Renoki 0e48bb4944 Fixed key typo 2020-12-07 19:44:26 +02:00
Alex Renoki e0d8f6ac33 Check for key app on authorization 2020-12-01 19:43:18 +02:00
Alex Renoki dc91eb4db3 Fixed fulfilled promise typo (fixes #592) 2020-11-20 15:11:03 +02:00
Kristian Løining 904a97c76f Redis uses query parameter "db", not "database" 2020-11-17 13:41:29 +01:00
Kristian Løining cafd21a0da Fix wrong redis replication connection config path 2020-11-17 13:32:44 +01:00
Kristian Løining 2bc6fbbf5e
Fix conflicting namespace with facade
Queue is already aliased as the facade Queue, which makes it look for Illuminate\Support\Facades\Queue\AsyncRedisConnector
2020-11-15 22:38:10 +01:00
Alex Renoki a087cb9b6d Replaced react-buzz with react-http 2020-10-18 10:12:19 +03:00
Alex Renoki 6a04f9ce4c Removed replicator-message-published 2020-10-07 23:28:38 +03:00
Alex Renoki 0ca6355aa6 Fixed constant 2020-10-07 22:56:38 +03:00
Alex Renoki a2dd552805 Added missing logs 2020-10-05 09:25:20 +03:00
rennokki a7c505e683
[2.x] Dispatch events on actions (#556)
* Dispatching events
2020-09-26 22:01:58 +03:00
rennokki 2880610bf6
Apply fixes from StyleCI (#551) 2020-09-25 21:16:30 +02:00
Alex Renoki c1bef4db5b Added async redis connection 2020-09-25 22:16:06 +03:00
Alex Renoki 4b484aad48 Fixed store 2020-09-19 18:46:13 +03:00
Alex Renoki 223a789b0d Added local removal for obsolete connections. 2020-09-19 18:38:08 +03:00
rennokki 60c21f3f7b
Apply fixes from StyleCI (#543) 2020-09-19 13:16:46 +02:00
Alex Renoki 5cb2ee9fce Run promises one-after-another 2020-09-19 14:16:26 +03:00
rennokki c85ec38452
Added getName() to channels 2020-09-19 08:50:04 +00:00
Alex Renoki 546c4fd0ef Broadcast both locally and across servers on dashboard logger. 2020-09-18 20:27:12 +03:00
Alex Renoki 7519da4a08 Force broadcastAcrossAllServers even if the channel exists locally 2020-09-18 17:04:16 +03:00
Alex Renoki 7f6b8fa2c8 Fixed health handler 2020-09-18 16:18:58 +03:00
Alex Renoki 9c19546faf Reduced the number of lines 2020-09-18 13:10:44 +03:00
Alex Renoki ed41ad5ca0 Moved tests across classes 2020-09-18 12:53:36 +03:00
Alex Renoki 14a79447f5 Added $processCollection to the getForGraph method 2020-09-18 12:44:07 +03:00
Alex Renoki 9a6e8e3dc1 Swapped order for mapWithKeys 2020-09-18 12:31:51 +03:00
Alex Renoki 9856fb62ed Added broadcastLocallyToEveryoneExcept 2020-09-18 11:57:55 +03:00
Alex Renoki bab2ef203c Changed order of fields to match the pusher docs 2020-09-18 11:57:39 +03:00
Alex Renoki 30c6635a91 Passing the Socket ID to the broadcastAcrossServers() 2020-09-18 11:57:10 +03:00
Alex Renoki bb1a03051a userLeftPresenceChannel gets automatically called 2020-09-17 14:17:55 +03:00
Alex Renoki da7f1ba578 Fixed a bug where obsolete data still remained in the server. 2020-09-17 13:57:10 +03:00
Alex Renoki 23e8b3db44 Fixed issues with connections being closed within 10 seconds 2020-09-17 13:56:09 +03:00
Alex Renoki 16ff2aa2b6 Fixed uniqueness 2020-09-17 11:30:36 +03:00
Alex Renoki b7ba98a6a6 Enforce topic subscription 2020-09-17 10:51:01 +03:00
Alex Renoki af3c8e02ec Merge branch 'fix/multiple-channel-members' of github.com:beyondcode/laravel-websockets into fix/multiple-channel-members 2020-09-16 11:09:17 +03:00
Alex Renoki 049950f015 Updated the dashboard logger 2020-09-16 11:09:14 +03:00
rennokki 58772324ba
Apply fixes from StyleCI (#535) 2020-09-16 10:03:21 +02:00
Alex Renoki 97ab241fa3 Fixing PR #530 2020-09-16 11:02:58 +03:00
Alex Renoki 0103e0f9e4 fix 2020-09-15 23:46:37 +03:00
Alex Renoki 630efa2562 Unsubscribe from all channels in sync mode. 2020-09-15 20:49:28 +03:00
Alex Renoki 5808a6610c Avoid displaying twice the same-id channel members 2020-09-15 20:49:06 +03:00
Alex Bouma 3ccf931dc0
Fix presence channel state management and event firing 2020-09-15 18:41:08 +02:00
Alex Renoki 7a17d3529f wip formatting 2020-09-15 17:03:17 +03:00
Alex Bouma 9da68ecd40
Fix double counting users in presence channel 2020-09-15 15:57:50 +02:00
Alex Renoki 6755b42acf Reverted appId to the payload. 2020-09-15 15:01:10 +03:00
Alex Renoki 7284191214 Append appId to the request payload 2020-09-15 14:57:16 +03:00
Alex Renoki e1f038432a space 2020-09-15 12:35:51 +03:00
rennokki 980f9271f0
Apply fixes from StyleCI (#526) 2020-09-15 11:30:43 +02:00
Alex Renoki 55f1332493 Added tracking for pongs 2020-09-15 12:30:17 +03:00
Alex Renoki 04e8298ae8 Merge branch '2.x' of github.com:beyondcode/laravel-websockets into feature/pcntl 2020-09-14 09:57:42 +03:00
Alex Renoki c26e86ec2c Trigger soft-shutdown on timer restart 2020-09-13 09:37:31 +03:00
Alex Renoki 1ec637fb51 Added healthcheck controller 2020-09-12 23:48:18 +03:00
rennokki 87f5e0c316
Apply fixes from StyleCI (#522) 2020-09-12 16:45:29 +02:00
Alex Renoki ec47925c71 Added soft closes for connections on SIGTERM/SIGINT 2020-09-12 17:45:07 +03:00
Alex Renoki 86fbf76a0e Refactored some functions 2020-09-11 23:58:16 +03:00
Alex Renoki f04cce73d3 Added websockets:flush command 2020-09-11 16:39:56 +03:00
Alex Renoki 90b2f3ebc2 Added helper methods for extending the store 2020-09-11 15:48:03 +03:00
Alex Renoki 0996f6e757 setting public 2020-09-11 15:30:35 +03:00
Alex Renoki a906bc8f3e Removed exceptions 2020-09-11 15:23:19 +03:00
Alex Renoki c6ab7786d8 improved statistics 2020-09-11 13:41:02 +03:00
Alex Renoki 015f6f4abb Removed references 2020-09-11 13:27:06 +03:00
Alex Renoki 18dab98d87 Fixed dashboard statistics. 2020-09-11 09:07:57 +03:00
Alex Renoki b5ddef3544 Fixed the .here() not working 2020-09-11 08:46:02 +03:00
Alex Renoki 76bc4820a0 Fixed presence channel broadcasting 2020-09-11 08:34:21 +03:00
Alex Renoki 6a23016f98 Registering routes 2020-09-11 08:29:48 +03:00
Alex Renoki 544b0a120d wip 2020-09-10 23:20:19 +03:00
Alex Renoki 7a77445122 wip 2020-09-10 23:16:17 +03:00
rennokki 341eb9604f
Apply fixes from StyleCI (#518) 2020-09-10 21:59:49 +02:00
Alex Renoki 6f32b89459 wip 2020-09-10 22:59:26 +03:00
Alex Renoki de6b1b28ba Reverted more __call() to direct calls 2020-09-07 09:34:06 +03:00
Alex Renoki 3555b471cd Fixed bug for non-int values 2020-09-06 20:29:33 +03:00
Alex Renoki 3ce55575a0 Fixed possible errors with null values 2020-09-06 19:44:35 +03:00
Alex Renoki 4fea039855 Added missing $replicator 2020-09-06 13:18:41 +03:00
Alex Renoki bd3aa90b65 Replaced __call with direct function call 2020-09-06 13:13:03 +03:00
Alex Renoki 5ba24cb80c Fixed tests for stats metrics 2020-09-06 10:53:03 +03:00
Alex Renoki 593c48f8c2 Fixed statistics logger 2020-09-05 22:41:02 +03:00
Alex Renoki b45d786bfd Merge branch '2.x' of github.com:beyondcode/laravel-websockets into fix/app-connections-count 2020-09-05 10:29:08 +03:00
Alex Renoki e6cfa85472 Replaced blocking Redis instance with non-blocking I/O client 2020-09-04 17:50:49 +03:00
rennokki a391f5afb2
formatting 2020-09-04 16:53:42 +03:00
Francis Lavoie f2a30bcb6f
Update ConfigAppManager.php 2020-09-04 09:23:43 -04:00
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