Skip to content

Instantly share code, notes, and snippets.

@oberstet
Created October 28, 2014 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oberstet/afaee5dfa24a5ec1ea79 to your computer and use it in GitHub Desktop.
Save oberstet/afaee5dfa24a5ec1ea79 to your computer and use it in GitHub Desktop.
oberstet@THINKPAD-T410S /c/Temp
$ crossbar init --template hello:php
Initializing application template 'hello:php' in directory 'c:\Temp'
Using template from 'c:/Python27/lib/site-packages/crossbar-0.9.9-py2.7.egg/crossbar/templates/hello/php'
Creating directory c:\Temp\.crossbar
Creating directory c:\Temp\web
Creating file c:\Temp\.gitignore
Creating file c:\Temp\client.php
Creating file c:\Temp\Makefile
Creating file c:\Temp\README.md
Creating file c:\Temp\.crossbar\config.json
Creating file c:\Temp\web\autobahn.min.js
Creating file c:\Temp\web\index.html
Application template initialized
Now install dependencies for the PHP/Thruway client by entering 'make install', start Crossbar using 'crossbar start' and open http://localh
ost:8080 in your browser.
oberstet@THINKPAD-T410S /c/Temp
$ make install
composer require "ratchet/pawl":"dev-master"
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "c:/ProgramData/ComposerSetup/bin
/composer.phar self-update" to get the latest version.
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing react/promise (v2.1.0)
Downloading: 100%
- Installing evenement/evenement (v2.0.0)
Loading from cache
- Installing react/stream (v0.4.2)
Downloading: 100%
- Installing react/event-loop (v0.4.1)
Loading from cache
- Installing react/socket (v0.4.2)
Loading from cache
- Installing react/cache (v0.4.0)
Loading from cache
- Installing react/dns (v0.4.1)
Loading from cache
- Installing react/socket-client (v0.4.2)
Downloading: 100%
- Installing symfony/routing (v2.5.6)
Downloading: 100%
- Installing symfony/http-foundation (v2.5.6)
Downloading: 100%
- Installing symfony/event-dispatcher (v2.5.6)
Downloading: 100%
- Installing guzzle/common (v3.9.2)
Downloading: 100%
- Installing guzzle/stream (v3.9.2)
Loading from cache
- Installing guzzle/parser (v3.9.2)
Loading from cache
- Installing guzzle/http (v3.9.2)
Downloading: 100%
- Installing cboden/ratchet (v0.3.2)
Loading from cache
- Installing ratchet/pawl (dev-master fd3b817)
Cloning fd3b81721d280fba3a502c94d85f038f62793ed7
react/event-loop suggests installing ext-libevent (>=0.1.0)
react/event-loop suggests installing ext-event (~1.0)
react/event-loop suggests installing ext-libev (*)
symfony/routing suggests installing symfony/config (For using the all-in-one router or any loader)
symfony/routing suggests installing symfony/yaml (For using the YAML loader)
symfony/routing suggests installing symfony/expression-language (For using expression matching)
symfony/routing suggests installing doctrine/annotations (For using the annotation loader)
symfony/event-dispatcher suggests installing symfony/dependency-injection ()
symfony/event-dispatcher suggests installing symfony/http-kernel ()
guzzle/http suggests installing ext-curl (*)
Writing lock file
Generating autoload files
composer require "voryx/thruway":"dev-master"
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "c:/ProgramData/ComposerSetup/bin
/composer.phar self-update" to get the latest version.
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Installing psr/log (1.0.0)
Downloading: 100%
- Installing voryx/thruway (dev-master 3f5feab)
Cloning 3f5feabb61fa250f27cfa4cc0c3fac754b0aed40
Writing lock file
Generating autoload files
oberstet@THINKPAD-T410S /c/Temp
$ crossbar start
2014-10-28 21:53:02+0100 [Controller 3240] Log opened.
2014-10-28 21:53:02+0100 [Controller 3240] ============================== Crossbar.io ==============================
2014-10-28 21:53:02+0100 [Controller 3240] Crossbar.io 0.9.9 starting
2014-10-28 21:53:05+0100 [Controller 3240] Running on CPython using IOCPReactor reactor
2014-10-28 21:53:05+0100 [Controller 3240] Starting from node directory c:\Temp\.crossbar
2014-10-28 21:53:05+0100 [Controller 3240] Starting from local configuration 'c:\Temp\.crossbar\config.json'
2014-10-28 21:53:05+0100 [Controller 3240] Warning, could not set process title (setproctitle not installed)
2014-10-28 21:53:05+0100 [Controller 3240] No WAMPlets detected in enviroment.
2014-10-28 21:53:05+0100 [Controller 3240] Starting Router with ID 'worker1' ..
2014-10-28 21:53:05+0100 [Controller 3240] Entering reactor event loop ...
2014-10-28 21:53:06+0100 [Router 4872] Log opened.
2014-10-28 21:53:06+0100 [Router 4872] Warning: could not set worker process title (setproctitle not installed)
2014-10-28 21:53:09+0100 [Router 4872] Running under CPython using IOCPReactor reactor
2014-10-28 21:53:11+0100 [Router 4872] Entering event loop ..
2014-10-28 21:53:11+0100 [Controller 3240] Router with ID 'worker1' and PID 4872 started
2014-10-28 21:53:11+0100 [Controller 3240] Router 'worker1': realm 'realm1' started
2014-10-28 21:53:11+0100 [Controller 3240] Router 'worker1': role 'role1' started on realm 'realm1'
2014-10-28 21:53:11+0100 [Controller 3240] Router 'worker1': transport 'transport1' started
2014-10-28 21:53:11+0100 [Controller 3240] Starting Guest with ID 'worker2' ..
2014-10-28 21:53:11+0100 [Controller 3240] GuestWorkerClientProtocol.connectionMade
2014-10-28 21:53:11+0100 [Controller 3240] Guest with ID 'worker2' and PID 3972 started
2014-10-28 21:53:11+0100 [Controller 3240] Guest 'worker2': started
2014-10-28 21:53:11+0100 [Router 4872] Site starting on 8080
2014-10-28 21:53:11+0100 [Guest 3972] subscribed to topic 'onhello'procedure add2() registered
2014-10-28 21:53:11+0100 [Guest 3972] published to 'oncounter' with counter 0
2014-10-28 21:53:11+0100 [Guest 3972] close
2014-10-28 21:53:12+0100 [Guest 3972] Fatal error: Call to a member function publish() on a non-object in C:\Temp\vendor\voryx\thruwa
y\src\Thruway\ClientSession.php on line 60
2014-10-28 21:53:12+0100 [Guest 3972] PHP Fatal error: Call to a member function publish() on a non-object in C:\Temp\vendor\voryx\t
hruway\src\Thruway\ClientSession.php on line 60
2014-10-28 21:53:12+0100 [Controller 3240] GuestWorkerClientProtocol.connectionLost: [Failure instance: Traceback (failure with no frames)
: <class 'twisted.internet.error.ProcessTerminated'>: A process has ended with a probable error condition: process ended with exit code 255.
]
2014-10-28 21:53:12+0100 [Controller 3240] GuestWorkerClientProtocol: guest ended with error 255
2014-10-28 21:53:12+0100 [Controller 3240] Guest excited with error [Failure instance: Traceback (failure with no frames): <class 'twisted
.internet.error.ProcessTerminated'>: A process has ended with a probable error condition: process ended with exit code 255.
]
2014-10-28 21:53:22+0100 [Controller 3240] Received SIGINT, shutting down.
2014-10-28 21:53:22+0100 [Router 4872] Received SIGINT, shutting down.
2014-10-28 21:53:22+0100 [Router 4872] (TCP Port 8080 Closed)
2014-10-28 21:53:22+0100 [Router 4872] Main loop terminated.
2014-10-28 21:53:22+0100 [Controller 3240] Main loop terminated.
oberstet@THINKPAD-T410S /c/Temp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment