Skip to content

Commit

Permalink
fixing table of contents
Browse files Browse the repository at this point in the history
  • Loading branch information
leogdion committed Aug 27, 2024
1 parent f81d43f commit ca25c1a
Showing 1 changed file with 24 additions and 29 deletions.
53 changes: 24 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,38 +25,12 @@ Using `Sublimation` as Lifecycle Service for application such as Hummingbird.

# Table of Contents

* [Introduction](#introduction)
* [Requirements](#requirements)
* [Requirements](#requirements)
* [Installation](#installation)
* [Server Installation](#server-installation)
* [Client Installation](#client-installation)
* [Bonjour vs Ngrok](#bonjour-vs-ngrok)
* [Using Bonjour](#using-bonjour)
* [Using Ngrok](#using-ngrok)
* [Usage](#usage)
* [License](#license)

# Introduction

For instance if you are using this with Hummingbird, you can just add it as a service:

```swift
let sublimation = Sublimation(
bindingConfiguration: .init(
hosts: hosts,
configuration: configuration.hosting
)
)

var app = Application(
router: router,
server: .http1WebSocketUpgrade(webSocketRouter: wsRouter),
configuration: .init(address: .init(setup: configuration.hosting))
)

app.addServices(sublimation)
```

## Requirements
# Requirements

**Apple Platforms**

Expand Down Expand Up @@ -92,6 +66,27 @@ let package = Package(
)
```

# Usage

For instance if you are using this with Hummingbird, you can just add it as a service:

```swift
let sublimation = Sublimation(
bindingConfiguration: .init(
hosts: hosts,
configuration: configuration.hosting
)
)

var app = Application(
router: router,
server: .http1WebSocketUpgrade(webSocketRouter: wsRouter),
configuration: .init(address: .init(setup: configuration.hosting))
)

app.addServices(sublimation)
```

# License

This code is distributed under the MIT license. See the [LICENSE](https://github.com/brightdigit/SublimationService/LICENSE) file for more info.
Expand Down

0 comments on commit ca25c1a

Please sign in to comment.