Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3f2b00d

Browse files
authored
Merge pull request walkor#72 from adrianofoschi/master
add transport to worker
2 parents 08ca61a + cce5db7 commit 3f2b00d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/SocketIO.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ class_alias('PHPSocketIO\Engine\Protocols\SocketIO', 'Protocols\SocketIO');
3030
{
3131
$worker = new Worker('SocketIO://0.0.0.0:'.$port, $opts);
3232
$worker->name = 'PHPSocketIO';
33+
34+
if(isset($opts['ssl'])) {
35+
$worker->transport = 'ssl';
36+
}
37+
3338
$this->attach($worker);
3439
}
3540
}

0 commit comments

Comments
 (0)