good morning!!!!

Skip to content
Snippets Groups Projects
Unverified Commit 52721a9f authored by Kunal Singh's avatar Kunal Singh Committed by Anmol Sethi
Browse files

Use ws:// over http:// in example logs

parent 8060f3a3
Branches
Tags
No related merge requests found
......@@ -5,7 +5,7 @@ This directory contains a full stack example of a simple chat webapp using nhooy
```bash
$ cd examples/chat
$ go run . localhost:0
listening on http://127.0.0.1:51055
listening on ws://127.0.0.1:51055
```
Visit the printed URL to submit and view broadcasted messages in a browser.
......
......@@ -31,7 +31,7 @@ func run() error {
if err != nil {
return err
}
log.Printf("listening on http://%v", l.Addr())
log.Printf("listening on ws://%v", l.Addr())
cs := newChatServer()
s := &http.Server{
......
......@@ -5,7 +5,7 @@ This directory contains a echo server example using nhooyr.io/websocket.
```bash
$ cd examples/echo
$ go run . localhost:0
listening on http://127.0.0.1:51055
listening on ws://127.0.0.1:51055
```
You can use a WebSocket client like https://github.com/hashrocket/ws to connect. All messages
......
......@@ -31,7 +31,7 @@ func run() error {
if err != nil {
return err
}
log.Printf("listening on http://%v", l.Addr())
log.Printf("listening on ws://%v", l.Addr())
s := &http.Server{
Handler: echoServer{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment