Documentation ¶
Index ¶
Constants ¶
View Source
const (
CommonChanCount = 1000
)
Variables ¶
View Source
var (
ErrConnClosed = errors.New("connection is closed")
)
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct { SocketId string // contains filtered or unexported fields }
TODO: 实现 gorilla/websocket 的事件监听,适配 socketio socketio 数据传输格式: `["binding","{\"code\":0,\"data\":123456,\"message\":\"\"}"]` // 字符串数组,第一个字符串是事件名,第二个字符串是数据,通常是 json string ["",""]
func (*Conn) ReadMessage ¶
func (*Conn) WriteMessage ¶
Click to show internal directories.
Click to hide internal directories.