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

Commit

Permalink
Merge pull request #58 from mvangoor/master
Browse files Browse the repository at this point in the history
Implement ssl context which was implemented in react socket-client 0.5.0
  • Loading branch information
matthewtrask authored Feb 7, 2017
2 parents 281e288 + 1766b3e commit db935dc
Show file tree
Hide file tree
Showing 5 changed files with 157 additions and 80 deletions.
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

0 comments on commit db935dc

Please sign in to comment.