forked from huiqing/percept2
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added WebSocket code for Euler Diagram creation
Although this will be moved to an external location at some point
- Loading branch information
1 parent
aa23ff8
commit f6748d8
Showing
484 changed files
with
205,371 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
use Ratchet\Server\IoServer; | ||
use Ratchet\Http\HttpServer; | ||
use Ratchet\WebSocket\WsServer; | ||
use HighVis\HVWebSocket; | ||
|
||
//require '/../autoload.php'; | ||
require dirname(__DIR__) . '/vendor/autoload.php'; | ||
|
||
//require '/vendor/autoload.php'; | ||
/* | ||
$server = IoServer::factory( | ||
new WsServer( | ||
new HVWebSocket() | ||
) | ||
, 8081 | ||
); | ||
/*/ | ||
$server = IoServer::factory( | ||
new HttpServer( | ||
new WsServer( | ||
new HVWebSocket() | ||
) | ||
), | ||
8081 | ||
); | ||
|
||
$server->run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"autoload": { | ||
"psr-0": { | ||
"HighVis": "src" | ||
} | ||
}, | ||
"require": { | ||
"cboden/Ratchet": "0.3.*" | ||
} | ||
} |
Oops, something went wrong.