FHIR Chat · web socket 'uri' · subscriptions

Stream: subscriptions

Topic: web socket 'uri'


view this post on Zulip Brian Reinhold (Apr 21 2021 at 20:50):

I get the following extension in the Capability statement

  "rest": [ {
    "extension": [ {
      "url": "http://hl7.org/fhir/StructureDefinition/capabilitystatement-websocket",
      "valueUri": "/websocketR4"
    } ],
    "mode": "server",
    "resource": [ {

The url to the server is "http://hapi.fhir.org/baseR4

So I would assume the websocket address is ws://hapi.fhir.org/baseR4/websocketR4

But I get a 404 error. Is there something wrong with this assumption?

view this post on Zulip Gino Canessa (Apr 21 2021 at 22:10):

You'll probably have better luck asking this on the #hapi stream - I believe some of those features need to be specifically enabled.

view this post on Zulip Brian Reinhold (Apr 22 2021 at 09:59):

@Gino Canessa I know they have to be specifically enabled but I assumed if they were in the capability statement they were enabled. Bad assumption perhaps? But I will travel there and ask.

view this post on Zulip Gino Canessa (Apr 22 2021 at 16:12):

The fragment from the CapabilityStatement just says there is a Websocket url, which I think resolves to something like ws://hapi.fhir.org/websocketR4, if I'm reading correctly. I assume someone there can give a more definitive answer.

view this post on Zulip Brian Reinhold (Apr 22 2021 at 19:34):

@Gino Canessa I did try both ws://hapi.fhir.org/websocketR4 and ws://hapi.fhir.org/baseR4/websocketR4 and both gave the 404 result. Though the server DID accept my Subscription resource.


Last updated: Apr 12 2022 at 19:14 UTC