MCPcopy Index your code
hub / github.com/coder/coder / WebsocketDialer

Struct WebsocketDialer

codersdk/workspacesdk/dialer.go:32–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32type 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected