()
| 371 | } |
| 372 | |
| 373 | func (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. |
| 388 | func (c *Client) run() { |
nothing calls this directly
no test coverage detected