Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitccb8fb0

Browse files
committed
chagne protocol on docs and logs
1 parente3a2d32 commitccb8fb0

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

‎internal/examples/chat/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This directory contains a full stack example of a simple chat webapp using nhooy
55
```bash
66
$cd examples/chat
77
$ go run. localhost:0
8-
listening onhttp://127.0.0.1:51055
8+
listening onws://127.0.0.1:51055
99
```
1010

1111
Visit the printed URL to submit and view broadcasted messages in a browser.

‎internal/examples/chat/main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func run() error {
3131
iferr!=nil {
3232
returnerr
3333
}
34-
log.Printf("listening onhttp://%v",l.Addr())
34+
log.Printf("listening onws://%v",l.Addr())
3535

3636
cs:=newChatServer()
3737
s:=&http.Server{

‎internal/examples/echo/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This directory contains a echo server example using nhooyr.io/websocket.
55
```bash
66
$cd examples/echo
77
$ go run. localhost:0
8-
listening onhttp://127.0.0.1:51055
8+
listening onws://127.0.0.1:51055
99
```
1010

1111
You can use a WebSocket client likehttps://github.com/hashrocket/ws to connect. All messages

‎internal/examples/echo/main.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func run() error {
3131
iferr!=nil {
3232
returnerr
3333
}
34-
log.Printf("listening onhttp://%v",l.Addr())
34+
log.Printf("listening onws://%v",l.Addr())
3535

3636
s:=&http.Server{
3737
Handler:echoServer{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp