Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
dx3mod committed Nov 4, 2024
1 parent ef1416f commit d145803
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[License-Image]: https://img.shields.io/badge/License-Apache2-blue.svg

> [!WARNING]
> In active development!
> In active development! You can view the progress [here](https://github.com/users/romanchechyotkin/projects/1).
## Usage

Expand All @@ -20,7 +20,7 @@ it using the [OPAM] package manager.
$ opam pin nats-client-lwt.dev https://github.com/romanchechyotkin/nats.ocaml.git
```

### Simple echo example
### Publish-Subscribe example

This example shows how to publish to a subject and handle its messages.

Expand All @@ -34,7 +34,7 @@ let main =
(* Connect to a NATS server by address 127.0.0.1:4222 with ECHO flag. *)
let%lwt client =
Nats_client_lwt.connect ~switch ~settings:[ `Echo ]
(Uri.of_string "tcp://127.0.0.1:4222")
(Uri.of_string "nats://127.0.0.1:4222")
in
(* Publish 'hello' message to greet.joe subject. *)
Expand Down
2 changes: 1 addition & 1 deletion examples/natsbyexample/publish_subscribe.ml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let main =
(* Connect to a NATS server by address 127.0.0.1:4222 with ECHO flag. *)
let%lwt client =
Nats_client_lwt.connect ~switch ~settings:[ `Echo ]
(Uri.of_string "tcp://127.0.0.1:4222")
(Uri.of_string "nats://127.0.0.1:4222")
in

(* Publish 'hello' message to greet.joe subject. *)
Expand Down

0 comments on commit d145803

Please sign in to comment.