feat 稳定300人
This commit is contained in:
@@ -197,6 +197,10 @@ func (w *WSConn) Close() (err error) {
|
||||
return w.write(make([]byte, 0), ws.OpClose)
|
||||
}
|
||||
|
||||
func (w *WSConn) IsClose() bool {
|
||||
return w.isClose
|
||||
}
|
||||
|
||||
func (w *WSConn) write(data []byte, opCode ws.OpCode) error {
|
||||
if w.isClose {
|
||||
return errors.New("connection has close")
|
||||
|
||||
Reference in New Issue
Block a user