MCPcopy Index your code
hub / github.com/koding/kite / RemoteAddr

Method RemoteAddr

client.go:373–385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

371}
372
373func (c *Client) RemoteAddr() string {
374 session := c.getSession()
375 if session == nil {
376 return ""
377 }
378
379 websocketsession, ok := session.(*sockjsclient.WebsocketSession)
380 if !ok {
381 return ""
382 }
383
384 return websocketsession.RemoteAddr()
385}
386
387// run consumes incoming dnode messages. Reconnects if necessary.
388func (c *Client) run() {

Callers

nothing calls this directly

Calls 1

getSessionMethod · 0.95

Tested by

no test coverage detected