Tubesocks alternatives and similar packages
Based on the "HTTP" category.
Alternatively, view Tubesocks alternatives based on common mentions on social networks and blogs.
-
Spray
DISCONTINUED. A suite of scala libraries for building and consuming RESTful web services on top of Akka: lightweight, asynchronous, non-blocking, actor-based, testable -
requests-scala
A Scala port of the popular Python Requests HTTP client: flexible, intuitive, and straightforward to use. -
Newman
DISCONTINUED. A REST DSL that tries to take the best from Dispatch, Finagle and Apache HttpClient. See here for rationale. -
jefe
Manages installation, updating, downloading, launching, error reporting, and more for your application.
SaaSHub - Software Alternatives and Reviews
Do you think we are missing an alternative of Tubesocks or a related project?
README
tubesocks
A comfortable and fashionable way to have bi-directional conversations with modern web servers.
Tubesocks is a snug little interface that wraps async http client which supports an emerging standard protocol for pushing messages to clients and responding over an open connection.
Here is an echo
client.
import tubesocks._
Sock.uri("ws://host") {
case Message(m, s) => s.send(m)
}
install
sbt
By hand (cut & paste)
libraryDependencies += "me.lessis" %% "tubesocks" % "0.1.0"
The civilized way
ls-install tubesocks
usage
import tubesocks._
Sock.uri("ws://host.com") {
case Open(s) => s.send("I'm here")
case Message(t, s) => println("server says %s" format t)
case Close(s) => println("we're done")
}
Do you prefer configuring your own transmission?
import tubesocks._
Sock.configure({ b =>
b.setWebSocketIdleTimeoutInMs(2 * 60 * 1000)
})(new URI("ws://host.com")) {
case Message(t, s) => s.send("thanks for the message")
}
Doug Tangren (softprops) 2012-2013