dnet:tcpwebsocket库 源码
dnet 一个简单的tcp , websocket的封装 会议 type Session interface { // connection NetConn() interface{} // RemoteAddr returns the remote network address. RemoteAddr() net.Addr // LocalAddr returns the local network address. LocalAddr() net.Addr // Send data will be encoded by the encoder and sent Send(o interface{}) error // SetContext binding session data SetContext(ctx interface{}) //