Commit Graph

450 Commits

Author SHA1 Message Date
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
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 87c00fb340
app() -> $this->laravel in StartWebSocketServer 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
Henrik B Hansen 8e422cbc5b Make it possible to customise the port the dashboard connects to (#124)
* Make it possible to customise the port the dashboard connects to.

* Fixed so both wsPort and wssPort are changed.

* Changed env port name and added path

* Fixed typo in wsPath

* Moved port into dashboard section in config

* Changed env name to LARAVEL_WEBSOCKETS_PORT
2019-09-04 08:48:06 +02:00
Marcel Pociot 74c3e06ece Add Laravel 6 support and ignition solution 2019-09-04 08:45:21 +02:00
Gabriel Iuga 94fb667b90 Fix for dependency upgrade (#223)
* + DnsResolver no longer extends React/Dns/Resolver as it's now a final class
+ StartWebSocketServer:getDnsResolver returns ResolverInterface to comply with new react/dns policy

* + organize imports

* + organize imports
2019-07-28 14:18:22 -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
Luke Policinski 556f4338e8 Fix/Feature : Fixing ability to add custom handlers to a route by adding a custom routes method to the router (#150)
Fixing Coding Standards

Fixing Coding Standards
2019-05-11 08:46:25 +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
Marcel Pociot 1c2b89b54d Fix content length bug 2019-02-27 15:44:42 +01:00
Marcel Pociot f26f89236e Merge branch 'master' of github.com:beyondcode/laravel-websockets 2019-02-27 15:28:09 +01:00
Marcel Pociot 82bba5bd02 Fix content length method 2019-02-27 15:27:51 +01: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
Marcel Pociot 15e6b6ae96 Use content length check for requests split into multiple messages 2019-02-27 15:24:00 +01:00
Marcel Pociot edcf205dba
Apply fixes from StyleCI (#123) 2019-02-27 15:23:47 +01:00
Francis Lavoie 70ffe41c86 Add support for overriding stats logger's base URL 2019-02-21 12:13:58 -05: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
Ahmad Fikrizaman Bin Abd Rahim c1f6ffa51b Fix Invalid Signature issue and enable event creator to be sent from any app (#39)
* Add the ability to configure middleware.

Fixes #22

* Fix StyleCI Error.

* Include X-App-ID

* Reconstruct the PusherBroadcaster

* fix styleci

* change from overwriting constructor to new Broadcaster

* optional  inside dashboard gate

* remove comment

* fix for styleci

* Fix typo

* Removed unused $config['options']
2018-12-17 09:38:18 +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
Alex Bouma db6d794fd5 Option to resolve DNS for the statistics endpoint (#31) 2018-12-10 10:31:19 +01:00
Alex Bouma a0ea0617f5
Fix Pusher lib expecting empty object not array 2018-12-07 20:38:17 +01:00
Syed I.R 3559b7db4f Fix Namespace 2018-12-07 01:25:48 +05:30
Marcel Pociot f03acd10a4
Merge pull request #14 from LKaemmerling/master
Add optional server variable
2018-12-05 21:16:06 +01:00
Marcel Pociot 76e091d1a3
Merge pull request #18 from pascalbaljet/master
Support for forcing debug mode
2018-12-05 21:14:17 +01:00