pedestal.ions icon indicating copy to clipboard operation
pedestal.ions copied to clipboard

WebSocket support

Open usernolan opened this issue 3 years ago • 2 comments

Hi @ddeaguiar! Do you know of anyone who has tried to get pedestal.ions (or Ions, generally) working with WebSockets? I have been trying to determine whether using WebSockets with Ions is feasible or not, given AWS constraints and the inability to override server configuration in Datomic Cloud.

I see in the README that one cannot simply "turn on" async functionality with pedestal.ions, but I'm not sure whether that precludes the use of WebSockets or not, and whether or not the limitations could be worked around.

Apologies if I've missed something obvious in my search.

usernolan avatar Apr 29 '21 02:04 usernolan

Hi @usernms! I have not tried using WebSockets with pedestal.ions or Datomic Ions in general but I've gotten some field reports that WebSocket integration via API Gateway is pretty easy to setup. I don't think you will require async processing when integrating with API GW in this way.

ddeaguiar avatar Apr 30 '21 21:04 ddeaguiar

@ddeaguiar thanks for the quick response! And apologies for the delay. That tracks with what I've been able to scrap together about making this work. I'll report back here with any results once I get some time to poke this again.

usernolan avatar May 06 '21 21:05 usernolan