Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Implement ssl context which was implemented in react socket-client 0.5.0 #58

Merged
merged 6 commits into from
Feb 7, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,15 @@ Connection sockets will use IPv6 by default where available. If you need to forc
$connection->setOption('force-ipv4', true);
```

### allow-self-signed

By default all ssl connections only accept officially signed certificates. Sometimes you need to connect to a irc server that uses a self signed certificate. If you need to allow connections to servers using a self signed certificate, set this option to `true`.

```php
<?php
$connection->setOption('allow-self-signed', true);
```

### transport

By default, a standard TCP socket is used. For IRC servers that support TLS or SSL, specify an [appropriate transport](http://www.php.net/manual/en/transports.inet.php).
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"phergie/phergie-irc-connection": "~2.0",
"react/event-loop": "~0.4.0",
"react/stream": "~0.4.2",
"react/socket-client": "~0.4.2",
"react/socket-client": "^0.5",
"react/dns": "~0.4.0",
"react/promise": "~2.0",
"psr/log": "~1.0",
Expand Down
Loading