Skip to main content
Solved

What is the right port to use the websocket sender?


Forum|alt.badge.img+2

I am trying to have this demo https://community.safe.com/s/article/live-spatial-dashboard working on my FME Server, but I am not sure what is the right port to use in the web socket sender, I have my FME Server in another server from my network so I access it through the hostname and a specific port, but I have tried to use the same host name to get this Demo working and I can't have it correctly. I am using (ws:<hostname>:7078) in the websocket sender, and originally it was (ws:localhost:7078/websockets), my browser is giving me a connection error.

websocket errorWhen I run the workspace in FME Server I don't get an error, it keeps running.

Thanks

 

Best answer by gazza

gazza wrote:

The first thing I would be looking at is if port 7078 is open on any firewalls between your machine and the FME Server.

You should be able to test this by going to the topic monitoring section of the FME Server web UI (/fmeserver/#/notifications/topics/monitoring) and using developer tools in your browser to look for web socket traffic.

View original
Did this help you find an answer to your question?

4 replies

gazza
Contributor
Forum|alt.badge.img+6
  • Contributor
  • July 14, 2021

I have a series of blog posts about connecting a weather station to FME Server that might help you out. https://imapping.wordpress.com/

Parts 3 and 4 cover using web sockets.

https://imapping.wordpress.com/2021/03/09/connecting-a-weather-station-to-fme-pt-iii/

https://imapping.wordpress.com/2021/03/26/connecting-a-weather-station-to-fme-pt-iv/


gazza
Contributor
Forum|alt.badge.img+6
  • Contributor
  • July 14, 2021

The first thing I would be looking at is if port 7078 is open on any firewalls between your machine and the FME Server.


gazza
Contributor
Forum|alt.badge.img+6
  • Contributor
  • Best Answer
  • July 14, 2021
gazza wrote:

The first thing I would be looking at is if port 7078 is open on any firewalls between your machine and the FME Server.

You should be able to test this by going to the topic monitoring section of the FME Server web UI (/fmeserver/#/notifications/topics/monitoring) and using developer tools in your browser to look for web socket traffic.


Forum|alt.badge.img+2
gazza wrote:

I have a series of blog posts about connecting a weather station to FME Server that might help you out. https://imapping.wordpress.com/

Parts 3 and 4 cover using web sockets.

https://imapping.wordpress.com/2021/03/09/connecting-a-weather-station-to-fme-pt-iii/

https://imapping.wordpress.com/2021/03/26/connecting-a-weather-station-to-fme-pt-iv/

Thanks @Gary Nicholson​ I will definitively check those blogs, they seem really interesting, and regarding the port, I have fixed that, just how you sugested on the other comment, thanks for that too. Now it seems like the js code in the demo is a little outdated, so the map is receiving the data but is not able to show the markers, I will study a bit the documentation of Mapbox and try to fix it. I will let you know if I have any other question or comment about your work.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings