Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add WS station fetcher #135

Merged
merged 12 commits into from
Apr 22, 2024
Merged

feat: add WS station fetcher #135

merged 12 commits into from
Apr 22, 2024

Conversation

NuttyShrimp
Copy link
Member

@NuttyShrimp NuttyShrimp commented Apr 7, 2024

adds another fetcher for the stations, the new one uses websockets to connect to the station.
Telraam chooses the right fetcher based on the scheme of the URL defined in the DB.

I've found out the simplePositioner is not a fan of the multi threading and start panicking with out-of-bound errors after some data has been put in its list. I've opened a new issue as this is something out of scope for this PR

closes #127

@NuttyShrimp NuttyShrimp requested a review from FKD13 April 7, 2024 10:34
@NuttyShrimp NuttyShrimp linked an issue Apr 7, 2024 that may be closed by this pull request
build.gradle Outdated

// Websocket client libs
compileOnly 'jakarta.websocket:jakarta.websocket-client-api:2.2.0-M1'
implementation 'org.glassfish.tyrus.bundles:tyrus-standalone-client:2.2.0-M1'
Copy link
Member

Choose a reason for hiding this comment

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

What does this dependency provide?

Copy link
Member Author

Choose a reason for hiding this comment

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

It adds implementation for some jakarta classes, I've replaced it with the jersey one to make it more in line with the impl's we are using for our ws server

@NuttyShrimp NuttyShrimp requested a review from FKD13 April 15, 2024 14:59
Copy link
Member

@xerbalind xerbalind left a comment

Choose a reason for hiding this comment

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

When (invalid) mac (not mapped to team) is received over ws connection, telraam resets websocket connection and asks for same detection again -> error loop.

@NuttyShrimp NuttyShrimp merged commit dfd4510 into development Apr 22, 2024
1 check passed
@NuttyShrimp NuttyShrimp deleted the station-ws-conn branch April 22, 2024 17:35
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.

Fetcher: move to WS based fetcher
4 participants