walkor / channel

Interprocess communication component for workerman
137 stars 49 forks source link

Change Channel port #1

Closed joanebrown closed 7 years ago

joanebrown commented 7 years ago

Hi,

I'm trying to change the port of Channel as follow:


$channel = new \Channel\Server('127.0.0.1', 7596);

[...]

$io->on('workerStart', function()use($io) {
    echo "This message is show and then shows the error";
    $io->adapter('\PHPSocketIO\ChannelAdapter');
});

But I get the next error:

Waring channel connection closed and try to reconnect

When I trying to start the Workerman server.

walkor commented 7 years ago

https://github.com/walkor/phpsocket.io/issues/55 This may help you.

joanebrown commented 7 years ago

Yeah, this help me a lot! Now works :-)