Skip to content

Commit

Permalink
modify namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
wpjscc committed Aug 10, 2024
1 parent 47ab69a commit 215da1a
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# reactphp-framework/websocket-group
# reactphp-x/websocket-group

# install

```
composer require reactphp-framework/websocket-group -vvv
composer require reactphp-x/websocket-group -vvv
```

# Usage
Expand All @@ -13,11 +13,11 @@ composer require reactphp-framework/websocket-group -vvv

require __DIR__ . '/vendor/autoload.php';

use Reactphp\Framework\WebsocketGroup\WebsocketGroupComponent;
use Reactphp\Framework\WebsocketGroup\WebsocketGroupMiddleware;
use Reactphp\Framework\ConnectionGroup\ConnectionGroup;
use Reactphp\Framework\ConnectionGroup\SingleConnectionGroup;
use Reactphp\Framework\WebsocketMiddleware\WebsocketMiddleware;
use ReactphpX\WebsocketGroup\WebsocketGroupComponent;
use ReactphpX\WebsocketGroup\WebsocketGroupMiddleware;
use ReactphpX\ConnectionGroup\ConnectionGroup;
use ReactphpX\ConnectionGroup\SingleConnectionGroup;
use ReactphpX\WebsocketMiddleware\WebsocketMiddleware;

$connectionGroup = SingleConnectionGroup::instance();
// $connectionGroup = new ConnectionGroup;
Expand Down Expand Up @@ -58,7 +58,7 @@ visit http://10.10.10.2:8090/isOnlineId,sendMessageToId?isOnlineId[id]=1&sendMes

# see mor message

Reactphp\Framework\ConnectionGroup\ConnectionGroup
ReactphpX\ConnectionGroup\ConnectionGroup


# License
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "reactphp-framework/websocket-group",
"name": "reactphp-x/websocket-group",
"license": "MIT",
"autoload": {
"psr-4": {
"Reactphp\\Framework\\WebsocketGroup\\": "src/"
"ReactphpX\\WebsocketGroup\\": "src/"
}
},
"authors": [
Expand All @@ -13,8 +13,8 @@
}
],
"require": {
"reactphp-framework/websocket-middleware": "^1.0",
"reactphp-framework/connection-group": "^1.0",
"reactphp-x/websocket-middleware": "^1.0",
"reactphp-x/connection-group": "^1.0",
"wpjscc/react-stream-json": "^1.0"
}
}
10 changes: 5 additions & 5 deletions examples/group.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

require __DIR__ . '/../vendor/autoload.php';

use Reactphp\Framework\WebsocketGroup\WebsocketGroupComponent;
use Reactphp\Framework\WebsocketGroup\WebsocketGroupMiddleware;
use Reactphp\Framework\ConnectionGroup\ConnectionGroup;
use Reactphp\Framework\ConnectionGroup\SingleConnectionGroup;
use Reactphp\Framework\WebsocketMiddleware\WebsocketMiddleware;
use ReactphpX\WebsocketGroup\WebsocketGroupComponent;
use ReactphpX\WebsocketGroup\WebsocketGroupMiddleware;
use ReactphpX\ConnectionGroup\ConnectionGroup;
use ReactphpX\ConnectionGroup\SingleConnectionGroup;
use ReactphpX\WebsocketMiddleware\WebsocketMiddleware;

$connectionGroup = SingleConnectionGroup::instance();
// $connectionGroup = new ConnectionGroup;
Expand Down
8 changes: 4 additions & 4 deletions src/WebsocketGroupComponent.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Reactphp\Framework\WebsocketGroup;
namespace ReactphpX\WebsocketGroup;

use Psr\Http\Message\ServerRequestInterface;
use Reactphp\Framework\WebsocketMiddleware\ConnectionInterface;
use Reactphp\Framework\WebsocketMiddleware\MessageComponentInterface;
use Reactphp\Framework\ConnectionGroup\ConnectionGroup;
use ReactphpX\WebsocketMiddleware\ConnectionInterface;
use ReactphpX\WebsocketMiddleware\MessageComponentInterface;
use ReactphpX\ConnectionGroup\ConnectionGroup;

class WebsocketGroupComponent implements MessageComponentInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/WebsocketGroupMiddleware.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php

namespace Reactphp\Framework\WebsocketGroup;
namespace ReactphpX\WebsocketGroup;

use Reactphp\Framework\ConnectionGroup\ConnectionGroup;
use ReactphpX\ConnectionGroup\ConnectionGroup;
use Psr\Http\Message\ServerRequestInterface;
use Ratchet\RFC6455\Handshake\RequestVerifier;
use React\Http\Message\Response;
Expand Down

0 comments on commit 215da1a

Please sign in to comment.