XHRSession implements sockjs.Session with XHR transport.
| 29 | |
| 30 | // XHRSession implements sockjs.Session with XHR transport. |
| 31 | type XHRSession struct { |
| 32 | mu sync.Mutex |
| 33 | |
| 34 | client *http.Client |
| 35 | timeout time.Duration |
| 36 | sessionURL string |
| 37 | sessionID string |
| 38 | messages []string |
| 39 | abort chan struct{} |
| 40 | req *http.Request |
| 41 | state sockjs.SessionState |
| 42 | } |
| 43 | |
| 44 | var _ sockjs.Session = (*XHRSession)(nil) |
| 45 |
nothing calls this directly
no outgoing calls
no test coverage detected