25 |28 | @endforeach 29 | @endif 30 |{{$row->body}}
26 | 27 |
├── public
├── favicon.ico
├── packages
│ ├── .gitkeep
│ └── bootstrap
│ │ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.ttf
│ │ └── glyphicons-halflings-regular.woff
│ │ ├── css
│ │ ├── bootstrap-theme.min.css
│ │ └── bootstrap-theme.css
│ │ └── js
│ │ └── bootstrap.min.js
├── robots.txt
├── assets
│ ├── css
│ │ └── basic.css
│ └── js
│ │ └── docs.min.js
├── .htaccess
├── index.php
└── dist
│ └── backbone-min.js
├── app
├── App
│ ├── Commands
│ │ ├── .gitkeep
│ │ ├── PublishCommand.php
│ │ ├── PubSubCommand.php
│ │ └── Socket
│ │ │ └── IoCommand.php
│ ├── Reactive
│ │ ├── AsyncInterface.php
│ │ ├── DataStoreInterface.php
│ │ ├── DataStore.php
│ │ ├── Async.php
│ │ └── Socket
│ │ │ ├── Server.php
│ │ │ └── Push.php
│ ├── Controllers
│ │ ├── HomeController.php
│ │ ├── BaseController.php
│ │ ├── SocketIoController.php
│ │ └── EmitController.php
│ └── Providers
│ │ ├── DataStoreServiceProvider.php
│ │ ├── Server
│ │ ├── PublishServiceProvider.php
│ │ └── IoServiceProvider.php
│ │ └── PubSubServiceProvider.php
├── config
│ ├── packages
│ │ └── .gitkeep
│ ├── pubsub.php
│ ├── compile.php
│ ├── testing
│ │ ├── cache.php
│ │ └── session.php
│ ├── workbench.php
│ ├── view.php
│ ├── remote.php
│ ├── queue.php
│ ├── auth.php
│ ├── cache.php
│ ├── database.php
│ ├── mail.php
│ ├── session.php
│ ├── local
│ │ └── app.php
│ └── app.php
├── database
│ ├── seeds
│ │ ├── .gitkeep
│ │ └── DatabaseSeeder.php
│ ├── migrations
│ │ └── .gitkeep
│ └── production.sqlite
├── start
│ ├── local.php
│ ├── artisan.php
│ └── global.php
├── storage
│ ├── .gitignore
│ ├── cache
│ │ └── .gitignore
│ ├── logs
│ │ └── .gitignore
│ ├── meta
│ │ └── .gitignore
│ ├── sessions
│ │ └── .gitignore
│ └── views
│ │ └── .gitignore
├── routes.php
├── tests
│ ├── ExampleTest.php
│ └── TestCase.php
├── lang
│ └── en
│ │ ├── pagination.php
│ │ ├── reminders.php
│ │ └── validation.php
├── views
│ ├── elements
│ │ └── navigation.blade.php
│ ├── index.blade.php
│ ├── layout
│ │ └── default.blade.php
│ ├── socket
│ │ └── index.blade.php
│ └── emit
│ │ └── index.blade.php
└── filters.php
├── .gitignore
├── CONTRIBUTING.md
├── server.php
├── phpunit.xml
├── composer.json
├── bootstrap
├── paths.php
├── start.php
└── autoload.php
├── README.md
└── artisan
/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/App/Commands/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/config/packages/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/database/seeds/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/public/packages/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/database/migrations/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/database/production.sqlite:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/app/start/local.php:
--------------------------------------------------------------------------------
1 | 'channel:pubsub',
5 | ];
6 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contribution Guidelines
2 |
3 | Please submit all issues and pull requests to the [laravel/framework](http://github.com/laravel/framework) repository!
--------------------------------------------------------------------------------
/public/packages/bootstrap/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ytake/laravel-websocket/HEAD/public/packages/bootstrap/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/public/packages/bootstrap/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ytake/laravel-websocket/HEAD/public/packages/bootstrap/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/public/packages/bootstrap/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ytake/laravel-websocket/HEAD/public/packages/bootstrap/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/public/assets/css/basic.css:
--------------------------------------------------------------------------------
1 | body {
2 | padding-top: 50px;
3 | }
4 | .starter-template {
5 | padding: 40px 15px;
6 | text-align: center;
7 | }
8 |
9 | #content {
10 | text-align: left;
11 | }
--------------------------------------------------------------------------------
/app/App/Reactive/AsyncInterface.php:
--------------------------------------------------------------------------------
1 | call('UserTableSeeder');
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/app/routes.php:
--------------------------------------------------------------------------------
1 | 'App\Controllers'], function (){
4 |
5 | \Route::get('/', 'HomeController@getIndex');
6 | \Route::resource('emit', 'EmitController', ['only' => ['index', 'store']]);
7 | \Route::resource('socket', 'SocketIoController', ['only' => ['index', 'store']]);
8 | });
9 |
--------------------------------------------------------------------------------
/app/tests/ExampleTest.php:
--------------------------------------------------------------------------------
1 | client->request('GET', '/');
13 |
14 | $this->assertTrue($this->client->getResponse()->isOk());
15 | }
16 |
17 | }
--------------------------------------------------------------------------------
/public/.htaccess:
--------------------------------------------------------------------------------
1 |
$ php artisan websocket:server
websocket server boot. 17 |--port (-p) port (default: 3000)
18 |$ php artisan websocket:publish
publish to websocket server from command line 20 |--body (-b) send message (default: "publish form server")
21 |$ php artisan websocket:io
php socket.io server sample 23 |--port (-p) port (default: 3000)
24 |25 |28 | @endforeach 29 | @endif 30 |{{$row->body}}
26 | 27 |