Skip to content

Commit

Permalink
update: Update documentation example.
Browse files Browse the repository at this point in the history
  • Loading branch information
zishang520 committed Sep 15, 2023
1 parent 27fce92 commit a673ad9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Sample code:

```golang
import (
"github.com/zishang520/socket.io/socket"
"github.com/zishang520/socket.io/v2/socket"
)
io.On("connection", func(clients ...any) {
client := clients[0].(*socket.Socket)
Expand Down Expand Up @@ -85,7 +85,7 @@ package main
import (
"github.com/zishang520/engine.io/types"
"github.com/zishang520/engine.io/utils"
"github.com/zishang520/socket.io/socket"
"github.com/zishang520/socket.io/v2/socket"
"os"
"os/signal"
"syscall"
Expand Down Expand Up @@ -132,7 +132,7 @@ import (
"os/signal"
"syscall"

"github.com/zishang520/socket.io/socket"
"github.com/zishang520/socket.io/v2/socket"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion socket/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (s *Server) Opts() *ServerOptions {
//
// import (
// "github.com/zishang520/engine.io/utils"
// "github.com/zishang520/socket.io/socket"
// "github.com/zishang520/socket.io/v2/socket"
// )
//
// io := socket.NewServer(nil, nil)
Expand Down

0 comments on commit a673ad9

Please sign in to comment.