| 30 | } |
| 31 | |
| 32 | type WebsocketDialer struct { |
| 33 | logger slog.Logger |
| 34 | dialOptions *websocket.DialOptions |
| 35 | url *url.URL |
| 36 | // workspaceUpdatesReq != nil means that the dialer should call the WorkspaceUpdates RPC and |
| 37 | // return the corresponding client |
| 38 | workspaceUpdatesReq *proto.WorkspaceUpdatesRequest |
| 39 | |
| 40 | resumeTokenFailed bool |
| 41 | connected chan error |
| 42 | isFirst bool |
| 43 | } |
| 44 | |
| 45 | // checkResumeTokenFailure checks if the parsed error indicates a resume token failure |
| 46 | // and updates the resumeTokenFailed flag accordingly. Returns true if a resume token |
nothing calls this directly
no outgoing calls
no test coverage detected