FHIR Chat · Subscriptions and websockets · hapi

Stream: hapi

Topic: Subscriptions and websockets


view this post on Zulip Brian Reinhold (Apr 22 2021 at 10:08):

I am trying to use subscriptions on the public HAPI FHIR R4 server http://hapi.fhir.org/baseR4.
The CapabilityStatement says they are supported and the websocket extension gives

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

When I create a Subscription it is not rejected but when I try and connect with the websocket I get

ws://hapi.fhir.org/baseR4/websocketR4; Code: 1002 Invalid status code received: 404 Status line: HTTP/1.1 404 Not Found

and if I try a somewhat different base Url I get

ws://hapi.fhir.org/websocketR4; Code: 1002 Invalid status code received: 404 Status line: HTTP/1.1 404 Not Found

What am I doing wrong?

I have been able to use subscriptions on R4 HAPI FHIR servers (not the public one they were disabled at the time) but at that time there was no websocket extension so you just had to know it. I wanted to take advantage of the new extension and the fact Subscriptions now return a logical id and not just a 'ping'. But I have to connect first!!


Last updated: Apr 12 2022 at 19:14 UTC