GetSessionState gives state of the session.
()
| 162 | |
| 163 | // GetSessionState gives state of the session. |
| 164 | func (x *XHRSession) GetSessionState() sockjs.SessionState { |
| 165 | x.mu.Lock() |
| 166 | defer x.mu.Unlock() |
| 167 | |
| 168 | return x.state |
| 169 | } |
| 170 | |
| 171 | // Request implements the sockjs.Session interface. |
| 172 | func (x *XHRSession) Request() *http.Request { |