server. get ip of client.

This commit is contained in:
Gennadii Kovalev 2016-07-05 20:15:57 +02:00
parent 8a95c01df6
commit 426d5cedc6
1 changed files with 7 additions and 0 deletions

View File

@ -37,6 +37,13 @@ type Server struct {
tr transport.Transport tr transport.Transport
} }
/**
Get ip of socket client
*/
func (c *Channel) Ip() string {
return c.ip
}
/** /**
Get channel by it's sid Get channel by it's sid
*/ */