File tree 4 files changed +4
-4
lines changed
4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ This directory contains a full stack example of a simple chat webapp using nhooy
5
5
``` bash
6
6
$ cd examples/chat
7
7
$ go run . localhost:0
8
- listening on http ://127.0.0.1:51055
8
+ listening on ws ://127.0.0.1:51055
9
9
```
10
10
11
11
Visit the printed URL to submit and view broadcasted messages in a browser.
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ func run() error {
31
31
if err != nil {
32
32
return err
33
33
}
34
- log .Printf ("listening on http ://%v" , l .Addr ())
34
+ log .Printf ("listening on ws ://%v" , l .Addr ())
35
35
36
36
cs := newChatServer ()
37
37
s := & http.Server {
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ This directory contains a echo server example using nhooyr.io/websocket.
5
5
``` bash
6
6
$ cd examples/echo
7
7
$ go run . localhost:0
8
- listening on http ://127.0.0.1:51055
8
+ listening on ws ://127.0.0.1:51055
9
9
```
10
10
11
11
You can use a WebSocket client like https://github.com/hashrocket/ws to connect. All messages
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ func run() error {
31
31
if err != nil {
32
32
return err
33
33
}
34
- log .Printf ("listening on http ://%v" , l .Addr ())
34
+ log .Printf ("listening on ws ://%v" , l .Addr ())
35
35
36
36
s := & http.Server {
37
37
Handler : echoServer {
You can’t perform that action at this time.
0 commit comments