(state sockjs.SessionState)
| 281 | } |
| 282 | |
| 283 | func (w *WebsocketSession) setState(state sockjs.SessionState) { |
| 284 | w.mu.Lock() |
| 285 | w.state = state |
| 286 | w.mu.Unlock() |
| 287 | } |
| 288 | |
| 289 | // GetSessionState gives state of the session. |
| 290 | func (w *WebsocketSession) GetSessionState() sockjs.SessionState { |