Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Added TLS ALPN to the ConnectSettings options
  • Loading branch information
jonofe authored Apr 24, 2024
1 parent 9289e30 commit ebd5e0e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ $connectionSettings = (new \PhpMqtt\Client\ConnectionSettings)
// This option requires ConnectionSettings::setTlsClientCertificateFile() and
// ConnectionSettings::setTlsClientCertificateKeyFile() to be used as well.
->setTlsClientCertificateKeyPassphrase(null);

// The TLS ALPN is used to establish a TLS encrypted mqtt connection on port 443,
// which usually is reserved for TLS encrypted HTTP traffic.
->setTlsAlpn(null);
```

## Features
Expand Down

0 comments on commit ebd5e0e

Please sign in to comment.