Skip to content

Commit

Permalink
Clean up multiple events streams
Browse files Browse the repository at this point in the history
  • Loading branch information
ipopescu committed Jun 14, 2024
1 parent b85952d commit 17d6096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions source/docs/casper/developers/cli/sending-transactions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ If you want to follow the [lifecycle](../../concepts/design/casper-design.md#exe

- The IP address of a [peer](../prerequisites.md#acquire-node-address-from-network-peers) on the network
- The port specified as the `event_stream_server.address` in the node's *config.toml*, which is by default 9999 on Mainnet and Testnet
- The URL for DeployAccepted events, which is <HOST:PORT>/events/deploys
- The URL for streamed events, which is <HOST:PORT>/events

With the following command, you can start watching the event stream for DeployAccepted events. Note the event ID recorded when you send the Deploy in the next section.
With the following command, you can start watching the event stream. Note the event ID recorded when you send the Deploy in the next section.

```bash
curl -s http://65.21.235.219:9999/events/deploys
curl -s http://65.21.235.219:9999/events
```

## Sending a Deploy to the Network {#sending-the-deploy}
Expand Down
2 changes: 1 addition & 1 deletion source/docs/casper/developers/dapps/sdk/go-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import (
)

func main() {
client := sse.NewClient("https://<Node Address and Port>/events/main")
client := sse.NewClient("https://<Node Address and Port>/events")
defer client.Stop()
client.RegisterHandler(
sse.DeployProcessedEventType,
Expand Down

0 comments on commit 17d6096

Please sign in to comment.