Skip to content

Commit

Permalink
Minor tweaks (#6114)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Wessendorf <[email protected]>
  • Loading branch information
matzew authored Sep 11, 2024
1 parent 6735c3f commit 1715994
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions code-samples/serving/websockets-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,15 @@ Get the URL for your Service with:

```bash
kubectl get ksvc
NAME URL LATESTCREATED LATESTREADY READY REASON
websocket-server http://websocket-server.default.svc.cluster.local websocket-server-00001 websocket-server-00001 True
NAME URL LATESTCREATED LATESTREADY READY REASON
websocket-server http://websockets-server.default.svc.cluster.local websockets-server-00001 websocket-server-00001 True
```

Now run a container with the [wscat](https://github.com/websockets/wscat) CLI and point it to the WebSocket application `ws://websocket-server.default.svc.cluster.local/ws`, like:


```bash
kubectl run --rm -i --tty wscat --image=monotykamary/wscat --restart=Never -- -c ws://websocket-server.default.svc.cluster.local/ws
kubectl run --rm -i --tty wscat --image=monotykamary/wscat --restart=Never -- -c ws://websockets-server.default.svc.cluster.local/ws
```

Afterward you can chat with the WebSocket server like:
Expand Down
2 changes: 1 addition & 1 deletion code-samples/serving/websockets-go/config/service.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: websockets-go
name: websockets-server
namespace: default
spec:
template:
Expand Down

0 comments on commit 1715994

Please sign in to comment.