Comments (5)
Not sure to what scenario you are referring to which this happens.
All connections (api or stream) are based on the received endpoints from the hello message from the server.
I cannot replicate a situation where https
or wss
is not used if the endpoints define it.
If you could let me know how you get the issue to appear I will try to replicate it.
from freeboard-sk.
Oh right. My setup is with balena.io, that provides a publicly accessible proxied https connection to the http server running on the RPi. The server does not know that it is proxied via https and nor should it, because that would break local use.
What if freeboard tried to simply fall back to the host it was loaded from with no discovery if discovery fails?
from freeboard-sk.
So something like....
Send request to protocol://host:port/signalk
If
hello response received then
use it
else if
(no response || response does not contain endpoints: { v1: { signalk-http: {}, signalk-ws: {} }
then
fall back to
{
endpoints: {
v1: {
signalk-http= "protocol://host:port/signalk/v1/api/",
signalk-ws= "protocol://host:port/signalk/v1/stream",
}
}
}
The only issue I see is that currently, due to the differences in behaviour between node server and artemis, resource
PUTs and installed apps list
rely on being able to determine the server type from the hello
response.
Using a fallback will not guaraantee the correct server type so the above functions may not operate correctly.
Can we accelerate the PR's that seek to align server operation?
from freeboard-sk.
Addressed in v2.0.0
from freeboard-sk.
V2.0.0 released.
from freeboard-sk.
Related Issues (20)
- Add support for skipping onboarding screen HOT 10
- AIS targets all have HOT 6
- VMG converting to knots is incorrect HOT 1
- User configurable option for temporal resolution on tracks HOT 7
- Host resource consumption HOT 14
- Lock zoom to map - Functionality request HOT 1
- Unable to add routes/waypoints HOT 3
- Make colour of AIS targets adjustable as it's not legible with satellite imagery HOT 2
- Load GPX not working HOT 2
- SK bootup error about Freeboad-SK permission HOT 5
- Cannot set Anchor Watch HOT 3
- Anchor Watch looping raising notifcations HOT 2
- Feature Request: Add Timestamp in the notification HOT 1
- unable to open playback connection HOT 1
- next Waypoint name on Route? HOT 2
- Longer timer for 'Other vessels' settings HOT 2
- Pypilot HOT 4
- Unable to Upload waypoints GPX HOT 5
- Excellent function "constrain map" button doesn't toggle
- Charts coverage overview. HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freeboard-sk.