Questions tagged [aleph]

Aleph is a Clojure framework for asynchronous communication, built on top of Netty and Lamina

Aleph allows the creation of both clients and servers that can communicate using an array of protocols (HTTP, WebSockets, TCP, UDP, and others), and represents that communication via a single abstraction, channels. Because of the underlying libraries and the event-driven approach to communication, these clients and servers can be highly scalable.

See more:

22 questions
1
vote
1 answer

NullPointerException when lein ring server on Aleph+Ring

I am trying to run Aleph on top of Ring and use lein ring server for shorter feedback loop. When I'm invoking lein ring server everything seems to be fine but when I point my browser to an url I get a nasty NullPointerException with the stack trace…
mjaskowski
  • 1,479
  • 1
  • 12
  • 16
1
vote
0 answers

Async responses with Aleph aren't being received over IPv4 but are with IPv6

I'm trying to get server-sent events set up in Clojure with Aleph, but it's just not working over IPv4. Everything is fine if I connect over IPv6. This occurs both on Linux and MacOS. I've got a full example of what I'm talking about on GitHub. I…
Jonathan
  • 7,536
  • 4
  • 30
  • 44
0
votes
0 answers

Simple TCP client with aleph

I am trying to connect TCP server, whose code I can't control, via a simple asynchronous client (socket needs to remain open). The communication is via byte-arrays and I have some custom functions to create and parse the various byte-arrays to send…
dedupe
  • 9
  • 2
0
votes
1 answer

Problems with Incompletely Consumed Akka Streams

We have a service that uses Alpakka 3.0.4 (Scala 2.13) to stream multiple large files from S3, zip them, and send the zipped stream out as HTTP responses. The idea is to start sending out even before zipping is complete, to start zipping even before…
silverberry
  • 786
  • 5
  • 20
0
votes
0 answers

How to config proxy in aleph.http/websocket-client?

Could anyone tell how to set proxy configuration with funciton aleph.http/websocket-client of clj-commons/aleph "0.4.7-alpha7" Here is my code: (def proxy-config {:connection-options {:proxy-options {:host "127.0.0.1" …
0
votes
1 answer

allocate thread per request clojure

I am lost with all this async / multithreaded libs and native clojure capabilities. I have a webservice which calls an external API, transforms it response, and gives back to client. Right now is written in Python. I would like to let each client to…
dgan
  • 1,349
  • 1
  • 15
  • 28
-1
votes
2 answers

Address already in use when sending message to websocket

I’m using the manifold.stream library to send a message through a websocket: (defn send [] (manifold.stream/put! mysocket (generate-string {:type "unsubscribe" :product_ids ["ETH-USD"] :channels…
zendevil.eth
  • 974
  • 2
  • 9
  • 28
1
2