matvp91 / laravel-socket Goto Github PK
View Code? Open in Web Editor NEWReal-time socket communication for Laravel 5.
License: MIT License
Real-time socket communication for Laravel 5.
License: MIT License
Hi, how can I send a message to all clients from the server without a event?
Hi,
First of all, a big thanks for the effort for this package!
It works perfectly in my local, but I get this error when publish to my hosting server when try to perform send, and on my ssh it doesn't show Client Connected as in my local virtual server.
Uncaught DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state.
Thanks!
Object of class Ratchet\WebSocket\Version\RFC6455\Connection could not be converted to string in /wwwroot/laravelProject/vendor/laravel/framework/src/Illuminate/Console/Command.php:406
Problem 1
- Installation request for codemash/laravel-socket ^1.0 -> satisfiable by codemash/laravel-socket[1.0.0].
- codemash/laravel-socket 1.0.0 requires cboden/ratchet ^0.3.5 -> satisfiable by cboden/ratchet[v0.3.5, v0.3.6] but these conflict with your requirements or minimum-stability.
{
"name": "rappasoft/laravel-5-boilerplate",
"description": "The Laravel Boilerplate Project.",
"keywords": ["framework", "laravel", "boilerplate"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.0.0",
"appstract/laravel-blade-directives": "^0.4.4",
"arcanedev/log-viewer": "^4.4",
"arcanedev/no-captcha": "^5.0",
"authy/php": "~2.2",
"cboden/ratchet": "^0.4.1",
"ccxt/ccxt": "^1.10",
"creativeorange/gravatar": "~1.0",
"davejamesmiller/laravel-breadcrumbs": "^4.1",
"fenos/notifynder": "^4.3",
"fideloper/proxy": "~3.3",
"get-stream/stream-laravel": "^2.2",
"hieu-le/active": "^3.5",
"laravel-notification-channels/telegram": "^0.0.3",
"laravel/framework": "5.5.*",
"laravel/socialite": "^3.0",
"laravel/tinker": "~1.0",
"orchid/socket": "^1.6",
"predis/predis": "^1.1",
"react/event-loop": "^0.4.3",
"react/http": "^0.8.0",
"spatie/laravel-html": "^2.4",
"spatie/laravel-permission": "^2.5",
"webpatser/laravel-uuid": "^3.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.0",
"filp/whoops": "~2.0",
"fzaninotto/faker": "~1.4",
"laravel/browser-kit-testing": "^2.0",
"mockery/mockery": "~1.0",
"phpunit/phpunit": "~6.0",
"phpspec/phpspec": "~2.1"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
},
"files": [
"app/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover"
],
"clear-all": [
"composer dumpautoload -o",
"@php artisan optimize",
"@php artisan clear-compiled",
"@php artisan cache:clear",
"@php artisan route:clear",
"@php artisan view:clear",
"@php artisan config:clear"
],
"phpunit": [
"phpunit > output.txt -d memory_limit=15048M"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
}
}
after the copy all the code from the example the onConnect Works, but when i send a message, i received a message on the server console: Trying to get a property of non object
Connect a client, when the disconnected handler is called, the connected flag isn't resetted.
Hi
When trying to composer require the project there is a conflict with http-foundation versions.
`Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for codemash/laravel-socket ^1.0.0 -> satisfiable by codemash/laravel-socket[1.0.0].
- Conclusion: remove symfony/http-foundation 4.1.x-dev
- codemash/laravel-socket 1.0.0 requires cboden/ratchet ^0.3.5 -> satisfiable by cboden/ratchet[v0.3.5, v0.3.6].
- cboden/ratchet v0.3.5 requires symfony/http-foundation ^2.2|^3.0 -> satisfiable by symfony/http-foundation[2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev, 3.1.x-dev, 3.2.x-dev, 3.3.x-dev, 3.4.x-dev].
- cboden/ratchet v0.3.6 requires symfony/http-foundation ^2.2|^3.0 -> satisfiable by symfony/http-foundation[2.2.x-dev, 2.3.x-dev, 2.4.x-dev, 2.5.x-dev, 2.6.x-dev, 2.7.x-dev, 2.8.x-dev, 3.0.x-dev, 3.1.x-dev, 3.2.x-dev, 3.3.x-dev, 3.4.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 2.2.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 2.3.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 2.4.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 2.5.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 2.6.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 2.7.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 2.8.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 3.0.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 3.1.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 3.2.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 3.3.x-dev].
- Can only install one of: symfony/http-foundation[4.1.x-dev, 3.4.x-dev].
- Installation request for symfony/http-foundation 4.1.x-dev -> satisfiable by symfony/http-foundation[4.1.x-dev].`
$user_id = $session->get(Auth::getName());
user_id always return null laravel 5.4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.