Skip to content

Commit

Permalink
https
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Oct 4, 2024
1 parent ccbe9c2 commit 618d3b5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,22 @@ const wsServer = new WebSocketServer({ server: server });
server.listen(3000);
```

## HTTPS

Ultimate WS supports HTTPS. You can pass `uwsOptions` to `WebSocketServer` to configure it:
```js
const { WebSocketServer } = require("ultimate-ws");

const wsServer = new WebSocketServer({
port: 3000,
uwsOptions: {
// https://unetworking.github.io/uWebSockets.js/generated/interfaces/AppOptions.html
key_file_name: "path/to/key.pem",
cert_file_name: "path/to/cert.pem",
}
});
```

## Compatibility

✅ - Full support (all features and options are supported)
Expand Down

0 comments on commit 618d3b5

Please sign in to comment.