No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
README.md
generagteID.go
go.mod
go.sum
server.go
websocket.go

README.md

一个简单的聊天室

依赖文件:

go get github.com/gorilla/websocket

运行:

main.go

package main

import (
	"chat"
)

func main() {
	chat.ServerStar()
}
$ go run main.go  默认地址 localhost:8080
//或
$ go run main.go -addr 127.0.0.1:8080

监听 ws://localhost:8080/ws