Skip to content

Commit

Permalink
don't use the tcp connection ever
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellpeck committed Oct 1, 2024
1 parent 36289d0 commit 355caa1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/flowr/server-session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class FlowrServerSession implements FlowrSession {
const port = getConfig().get<number>(Settings.ServerPort, 1042)
this.outputChannel.appendLine(`Connecting to flowR server using ${type} at ${host}:${port}`)
// if the type is auto, we still start with a websocket connection first
this.connection = type == 'tcp' ? new TcpConnection() : isWeb() ? new BrowserWsConnection() : new WsConnection()
this.connection = isWeb() ? new BrowserWsConnection() : type == 'tcp' ? new TcpConnection() : new WsConnection()
this.connection.connect(host, port, () => {
this.state = 'connected'
updateStatusBar()
Expand Down Expand Up @@ -215,7 +215,6 @@ interface Connection {
destroy(): void
}

// TODO make this not be used at all on browsers!
class TcpConnection implements Connection {

private socket: net.Socket | undefined
Expand Down

0 comments on commit 355caa1

Please sign in to comment.