Websockets in standard?

Is there a way to include websockets into this standard? Our set up includes secure websocket comms.

1 Like

Would love to see this too

@Defidiamond and @stuart thanks for this question. Apologies for the delay in responding, we will get back to you with more details on this asap.

Hi @Defidiamond and @stuart ,

I am assuming you are envisioning using websockets to stream block and transactions data to the consumers of the APIs. This would be a great feature for Rosetta to support.

At the moment the Rosetta specification uses the OpenAPI 3.0 format. OpenAPI does not have streaming/websocket support yet, which introduces some complexity in adding websocket support to the Rosetta spec.

There is an open issue about this on Open API that we have been tracking. Unfortunately, it has been open for 6 years.

But, fortunately, there is a new specification, AsyncAPI, that might be helpful in bridging this gap. AsyncAPI is inspired by OpenAPI and tries to stay compatible with the OpenAPI specs as much as possible.

It is on our wishlist to experiment with AsycnAPI to add websocket support. If you are interested in giving this a shot, it would be quite amazing :slightly_smiling_face: