Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Secure websockets #14

wants to merge 1 commit into from

Conversation

ludis
Copy link

@ludis ludis commented May 22, 2020

Hi Taki,
added code for secure web sockets.

@takielias takielias added the enhancement New feature or request label May 22, 2020
@@ -131,28 +131,29 @@ public function __construct(array $config = array())
public function run()
{
// Initiliaze all the necessary class
$server = IoServer::factory(
Copy link
Owner

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',
Copy link
Owner

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.

Copy link
Owner

@takielias takielias left a 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.

Base automatically changed from master to main February 14, 2021 12:53
Base automatically changed from main to master February 14, 2021 12:54
@takielias takielias linked an issue Apr 19, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to use with HTTPS?
4 participants