diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a25e95883..d0693ae2f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed - **Breaking**: Options passed to `Waku.create` used to be passed to `Libp2p.create`; - Now, only the `libp2p` property is passed to `Libp2p.create`, allowing for a cleaner interface. + Now, only the `libp2p` property is passed to `Libp2p.create`, allowing for a cleaner interface. +- Examples (cli chat): Use tcp protocol instead of websocket. ### Added - Enable access to `WakuMessage.timestamp`. diff --git a/examples/cli-chat/src/chat.ts b/examples/cli-chat/src/chat.ts index 0f29881e73..b399d84134 100644 --- a/examples/cli-chat/src/chat.ts +++ b/examples/cli-chat/src/chat.ts @@ -7,6 +7,7 @@ import { Environment, getStatusFleetNodes, LightPushCodec, + Protocol, StoreCodec, Waku, WakuMessage, @@ -202,7 +203,8 @@ export function formatMessage(chatMsg: ChatMessage): string { async function addFleetNodes(opts: Options): Promise { await getStatusFleetNodes( - opts.prod ? Environment.Prod : Environment.Test + opts.prod ? Environment.Prod : Environment.Test, + Protocol.tcp ).then((nodes) => nodes.map((addr) => { opts.staticNodes.push(multiaddr(addr));