<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions tagged websocket</title>
<link>https://ask.clojure.org/index.php/tag/websocket</link>
<description></description>
<item>
<title>What's an ideomatic way to manage state in a library?</title>
<link>https://ask.clojure.org/index.php/13734/whats-an-ideomatic-way-to-manage-state-in-a-library</link>
<description>&lt;p&gt;I’m porting a JS library to clojure (and, potentially cljs), and I’m struggling with reasoning about local state. Imagine a scenario where you do RPC over websockets, and the server reply contextually depend on what the server had already sent you. You'd want to keep a local cache of the replies from the server, then.&lt;/p&gt;
&lt;p&gt;In OOP world it's expected you incapsulate both the socket and the cache and provide the library users an interface that sends RPCs and transparently handles the cache population and pulling results from it. What would be the ideomatic way to do the same in clojure[-script]? Would I just return a map and expect my functions to take it as a first argument, returning the update state along with the rpc result?&lt;/p&gt;
</description>
<category>Refs, agents, atoms</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/13734/whats-an-ideomatic-way-to-manage-state-in-a-library</guid>
<pubDate>Thu, 15 Feb 2024 12:46:36 +0000</pubDate>
</item>
<item>
<title>Duct framework</title>
<link>https://ask.clojure.org/index.php/8855/duct-framework</link>
<description>&lt;p&gt;Does the duct framework support websockets through any of its http backends (specifically for graphql)? &lt;/p&gt;
</description>
<category>Libs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8855/duct-framework</guid>
<pubDate>Mon, 18 Nov 2019 01:43:23 +0000</pubDate>
</item>
<item>
<title>Is there anyone doing websockets with datomic ion  on aws</title>
<link>https://ask.clojure.org/index.php/8303/is-there-anyone-doing-websockets-with-datomic-ion-on-aws</link>
<description>&lt;p&gt;We are trying to setup  our clojure server to handle websockets but we are using datomic's ion infrastructure on aws, making it not so easy.  I wonder if anyone has tried it or has any pointers? &lt;/p&gt;
</description>
<category>Libs</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8303/is-there-anyone-doing-websockets-with-datomic-ion-on-aws</guid>
<pubDate>Thu, 01 Aug 2019 18:54:02 +0000</pubDate>
</item>
</channel>
</rss>