Skip to content

Conversation

@Benjozork
Copy link
Member

No description provided.

@Benjozork Benjozork changed the title feat: remote displays app feat: remote displays app and PR CI Mar 31, 2024
let remoteClient: RemoteClient | undefined;
function initializeClient() {
if (!remoteClient) {
remoteClient = new RemoteClient(`ws://${window.location.hostname}:8380/interfaces/v1/remote-app`);
Copy link
Member

@alepouna alepouna Apr 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remoteClient = new RemoteClient(ws://${window.location.hostname}:8380/interfaces/v1/remote-app);

Wouldn't it better to use the configured server port incase user has a different port set via the installer?

Comment on lines -1 to +17
name: PR
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- ready_for_review

jobs:
title:
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
name: PR
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- ready_for_review

jobs:
title:
name: Validate title semantics
runs-on: ubuntu-latest
steps:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

diff here? is this just whitespace?

onChange={(event) => setTypedBridgeID(event.target.value)}
/>

<span>GFNCBENFB4TQ</span>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<span>GFNCBENFB4TQ</span>
<span>GFNCBENFB4TQ</span>

Does this have a purpose? Or is this meant to be taken from a var somewhere? I'm not very sure.

this.server = server;
this.logger.log('Remote app gateway websocket initialised');
this.logger.log(
`Initialised on http://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}${server.path}`,
Copy link
Member

@alepouna alepouna Apr 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`Initialised on http://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}${server.path}`,
`Initialised websocket gateway on ws://${await this.networkService.getLocalIp(true)}:${this.serverConf.port}${server.path}`,

I believe that a user looking at the logs might think this is (also) the remote app path and try to access it but of course it returns 404 since its only for websockets, and might cause confusion.

? `Connected (${connectionState.clientName})`
: connectionState.connected === ConnectionPhase.ConnectedToBridge
? 'Waiting on aircraft'
: 'Not connected'}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
: 'Not connected'}
: 'Simbridge Connection Lost'}

@Benjozork Benjozork force-pushed the feature/remote-app branch from 4acfc5d to e6d613e Compare May 11, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants