From 426d5cedc679435891b1b775d65a53e734b86cf3 Mon Sep 17 00:00:00 2001 From: Gennadii Kovalev Date: Tue, 5 Jul 2016 20:15:57 +0200 Subject: [PATCH] server. get ip of client. --- server.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server.go b/server.go index 569a8b7..055963a 100644 --- a/server.go +++ b/server.go @@ -37,6 +37,13 @@ type Server struct { tr transport.Transport } +/** +Get ip of socket client + */ +func (c *Channel) Ip() string { + return c.ip +} + /** Get channel by it's sid */