Skip to content

Commit 5dc2f00

Browse files
committed
fix: 修正WebSocket连接URL格式
1 parent 41abe43 commit 5dc2f00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/start/coding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func main() {
3838
```go
3939
func main() {
4040
driver := driver.NewWSClient(1*time.Second, driver.WSnode{
41-
Url: "localhost:4000",
41+
Url: "ws://localhost:4000",
4242
})
4343
bot := nsx.Default(driver)
4444
pvt := nsx.OnEvent[event.PrivateMessage](bot)

0 commit comments

Comments
 (0)