(status uint32, reason string)
| 293 | } |
| 294 | |
| 295 | func (x *XHRSession) Close(status uint32, reason string) error { |
| 296 | x.setState(sockjs.SessionClosed) |
| 297 | |
| 298 | select { |
| 299 | case x.abort <- struct{}{}: |
| 300 | default: |
| 301 | } |
| 302 | |
| 303 | return nil |
| 304 | } |
| 305 | |
| 306 | func (x *XHRSession) isClosed() bool { |
| 307 | return x.GetSessionState() == sockjs.SessionClosed |
no test coverage detected