Skip to main content
Question

WebSocketReceiver with authetication

  • April 7, 2016
  • 2 replies
  • 15 views

todd_davis
Influencer
Forum|alt.badge.img+23

Hi,

I am trying to use a websocketreceiver to take a feed. It connects and and provides details saying that it require authorization, which it does.

Now the question is how? Is it something that should be sent in the preamble, or do I need to use a websocketsender to send it first. I have tried several ways but that maybe the input is wrong.

Below is the input without the signature:

{"version":1,"user":"interpret.co.nz","product":"com.metservice.blitzen","document":"{\\"bounds\\":[{\\"south\\":-53.0,\\"west\\":154.0,\\"height\\":24.0,\\"width\\":35.0}],\\"timeout\\":1460203200069}","expiryDate":"20160409T120000+0000"}

We have it working in java, but we want to do it in FME, as we will be able to streamline the whole process into FME.

Any help or ideas appreciated.

Cheers,

Todd

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.

2 replies

mark2atsafe
Safer
Forum|alt.badge.img+59

Do you have anything in the connection preamble? I know very little about websockets but in the small examples I've created I've always set a preamble, for example:

{

ws_op: "open",

ws_stream_id: "EmergencyEvents"

}

I don't see why you would need a WebSocketSender first, unless you're trying to create the feed that you're reading from.

You might find some use from our FME Server training manual (even if you aren't using Server) particularly this section, as it talks about the WebSocket transformers.


todd_davis
Influencer
Forum|alt.badge.img+23
  • Author
  • Influencer
  • April 26, 2016

Do you have anything in the connection preamble? I know very little about websockets but in the small examples I've created I've always set a preamble, for example:

{

ws_op: "open",

ws_stream_id: "EmergencyEvents"

}

I don't see why you would need a WebSocketSender first, unless you're trying to create the feed that you're reading from.

You might find some use from our FME Server training manual (even if you aren't using Server) particularly this section, as it talks about the WebSocket transformers.

Unfortunately, it doesn't seem to make any difference. Have sent into support and will see if they can figure it out with all the details