func NewPeer(uid proto.UID, s *Server, send func(msg interface{}) error) *Peer {
	id := uuid.New().String()
	p := &Peer{
		uid:  uid,
		mid:  proto.MID(id),
		s:    s,
		send: send,
	}
	return p
}
// NewPeer create peer instance for client
NewPeer create peer instance for client
// NewPeer create peer instance for client
func NewPeer(uid proto.UID, s *Server, send func(msg interface{}) error) *Peer {
	id := uuid.New().String()
	p := &Peer{
		uid:  uid,
		mid:  proto.MID(id),
		s:    s,
		send: send,
	}
	return p
}
func NewPeer ( uid proto . UID , s * Server , send func ( msg interface { } ) error ) * Peer { id := uuid . New ( ) . String ( ) p := & Peer { uid : uid , mid : proto . MID ( id ) , s : s , send : send , } return p }
NewPeer create peer instance for client
NewPeer create peer instance for client