Skip to main content
Solved

Calling FME Server via C#, I want to report status back to user when calling process

  • September 28, 2017
  • 3 replies
  • 31 views

dfresh
Forum|alt.badge.img

I am using C# to call FME server and want to report messages back to the user. say I have a workbench and I want to post a message "Halfway Complete", then in C#, I would continuously check the feed, and relay any messages posted from that workbench,

Cheers,

Best answer by stalknecht

You can communicate through websockets. For FME you can use the WebSocketSender and WebSocketReceiver. Optionally you can use FME Server Notifications. Here is a C# library that uses websockets (websocket-sharp):https://github.com/sta/websocket-sharp#websocket-client

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

danilo_fme
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • September 29, 2017

Hi @dfresh,

That is a interesting topic.

To use the integration between FME Desktop and Server has the FME Server Playground: C# Request to FME Server.

Thanks,

Danilo


stalknecht
Contributor
Forum|alt.badge.img+21
  • Contributor
  • Best Answer
  • September 29, 2017

You can communicate through websockets. For FME you can use the WebSocketSender and WebSocketReceiver. Optionally you can use FME Server Notifications. Here is a C# library that uses websockets (websocket-sharp):https://github.com/sta/websocket-sharp#websocket-client


dfresh
Forum|alt.badge.img
  • Author
  • September 29, 2017

You can communicate through websockets. For FME you can use the WebSocketSender and WebSocketReceiver. Optionally you can use FME Server Notifications. Here is a C# library that uses websockets (websocket-sharp):https://github.com/sta/websocket-sharp#websocket-client

 

Thanks @stalknecht, I will be using websocket-sharp and the sender/receiver transformers.