-
-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Secure websockets #14
base: master
Are you sure you want to change the base?
Conversation
@@ -131,28 +131,29 @@ public function __construct(array $config = array()) | |||
public function run() | |||
{ | |||
// Initiliaze all the necessary class | |||
$server = IoServer::factory( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't remove the previous Timer.
|
||
$secure_websockets = new \React\Socket\Server($this->host . ':' . $this->port, $loop); | ||
$secure_websockets = new \React\Socket\SecureServer($secure_websockets, $loop, [ | ||
'local_cert' => '/path/to/server.crt', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local_cert
local_pk
allow_self_signed
verify_peer
The above parameters should not be hardcoded. Please use the codeigniter_websocket.php config file to maintain the value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please Check my comments and make the changes.
Hi Taki,
added code for secure web sockets.