Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim authored Nov 26, 2023
1 parent ec9f45b commit b05cd27
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ There are two options at the moment:
```elixir
def deps do
[
{:bandit, "~> 0.6"}
{:bandit, "~> 1.0"}
]
end
```
Expand Down Expand Up @@ -75,7 +75,7 @@ and the `websocket_adapter` project for the WebSocket bits. Since we need differ
routes, we will use the built-in `Plug.Router` for that:

```elixir
Mix.install([:plug, :bandit, :websock_adapter])
Mix.install([:bandit, :websock_adapter])

defmodule EchoServer do
def init(options) do
Expand Down Expand Up @@ -146,12 +146,11 @@ On a production system, you likely want to start your Plug pipeline under your a
$ mix new my_app --sup
```

Add both `:plug` and `:plug_cowboy` as dependencies in your `mix.exs`:
Add `:plug_cowboy` (or `:bandit`) as a dependency to your `mix.exs`:

```elixir
def deps do
[
{:plug, "~> 1.14"},
{:plug_cowboy, "~> 2.0"}
]
end
Expand Down

0 comments on commit b05cd27

Please sign in to comment.