From e788fd4da1677449128e5f5419058ad79b324122 Mon Sep 17 00:00:00 2001 From: krendel Date: Sun, 26 Feb 2017 11:44:23 +0200 Subject: [PATCH 1/3] fix souce link for client side library --- src/Ratchet/Wamp/ServerProtocol.php | 2 +- src/Ratchet/Wamp/WampServer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Ratchet/Wamp/ServerProtocol.php b/src/Ratchet/Wamp/ServerProtocol.php index 28badd3..d892409 100644 --- a/src/Ratchet/Wamp/ServerProtocol.php +++ b/src/Ratchet/Wamp/ServerProtocol.php @@ -8,7 +8,7 @@ use Ratchet\ConnectionInterface; * WebSocket Application Messaging Protocol * * @link http://wamp.ws/spec - * @link https://github.com/oberstet/AutobahnJS + * @link https://github.com/oberstet/autobahn-js * * +--------------+----+------------------+ * | Message Type | ID | DIRECTION | diff --git a/src/Ratchet/Wamp/WampServer.php b/src/Ratchet/Wamp/WampServer.php index f0675a3..5d710aa 100644 --- a/src/Ratchet/Wamp/WampServer.php +++ b/src/Ratchet/Wamp/WampServer.php @@ -8,7 +8,7 @@ use Ratchet\ConnectionInterface; * Enable support for the official WAMP sub-protocol in your application * WAMP allows for Pub/Sub and RPC * @link http://wamp.ws The WAMP specification - * @link https://github.com/oberstet/AutobahnJS Souce for client side library + * @link https://github.com/oberstet/autobahn-js Souce for client side library * @link http://autobahn.s3.amazonaws.com/js/autobahn.min.js Minified client side library */ class WampServer implements MessageComponentInterface, WsServerInterface { From bc631bd9c0f6ebfba751aaeaa23cb2a6706f446c Mon Sep 17 00:00:00 2001 From: Gyula Madarasz Date: Tue, 28 Mar 2017 14:12:54 +0100 Subject: [PATCH 2/3] Update README.md example code in readme failed in browser client by message: "Uncaught DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state" so wait for connection state is opened --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5cc5976..92aa73c 100644 --- a/README.md +++ b/README.md @@ -86,5 +86,5 @@ class MyChat implements MessageComponentInterface { // Then some JavaScript in the browser: var conn = new WebSocket('ws://localhost:8080/echo'); conn.onmessage = function(e) { console.log(e.data); }; - conn.send('Hello Me!'); -``` \ No newline at end of file + conn.onopen = function(e) { conn.send('Hello Me!'); }; +``` From e78b2d41971d13612b9a4952b3062a9242d49264 Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Wed, 19 Apr 2017 16:50:37 -0400 Subject: [PATCH 3/3] phpunit --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index 80a3aa5..6ce02b3 100644 --- a/composer.json +++ b/composer.json @@ -29,4 +29,7 @@ , "symfony/http-foundation": "^2.2|^3.0" , "symfony/routing": "^2.2|^3.0" } + , "require-dev": { + "phpunit/phpunit": "~4.8" + } }