• Stars
    star
    14
  • Rank 1,386,778 (Top 29 %)
  • Language
    Scala
  • License
    MIT License
  • Created almost 12 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A comfortable and fashionable way to have bi-directional conversations with modern web servers.

tubesocks

Build Status

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

More Repositories

1

action-gh-release

๐Ÿ“ฆ :octocat: GitHub Action for creating GitHub Releases
TypeScript
3,350
star
2

envy

deserialize env vars into typesafe structs with rust
Rust
758
star
3

shiplift

๐Ÿณ ๐Ÿฆ€ rust interface for maneuvering docker containers
Rust
593
star
4

serverless-rust

โšก ๐Ÿฆ€ a serverless framework plugin for rustlang applications
JavaScript
537
star
5

turnstyle

๐ŸŽŸ๏ธA GitHub Action for serializing workflow runs
TypeScript
280
star
6

hubcaps

a rust interface for github
Rust
280
star
7

atty

are you or are you not a tty?
Rust
254
star
8

dynomite

โšก๐Ÿฆ€ ๐Ÿงจ make your rust types fit DynamoDB and visa versa
Rust
211
star
9

hyperlocal

๐Ÿ”Œ โœจrustlang hyper bindings for local unix domain sockets
Rust
201
star
10

recap

deserialize typed structures from regex captures
Rust
164
star
11

cargo-thanks

๐Ÿ’– ๐Ÿฆ€ give thanks to your fellow Rustaceans
Rust
162
star
12

lambda-rust

๐Ÿณ ๐Ÿฆ€ a dockerized lambda build env for rust applications
Shell
161
star
13

np

new sbt project generation made simple(r)
Scala
149
star
14

openapi

openapi schema serialization for rust
Rust
122
star
15

awesome-mdbook

๐Ÿ•ถ๏ธ๐Ÿ—ƒ๏ธ a card catalog of mdbooks for your reading curiosity
101
star
16

serverless-aws-rust

โšก๐Ÿ—๏ธ template for new aws lambda serverless rust apps
Rust
95
star
17

serverless-aws-rust-http

โšก๐Ÿ—๏ธ template for new aws lambda serverless rust http apps
Rust
90
star
18

picture-show

slip and slide picture shows for the web
Scala
77
star
19

goji

a rust interface for jira
Rust
72
star
20

lando

๐Ÿ“ฆ ๐Ÿš€ a smooth-talking smuggler of Rust HTTP functions into AWS lambda
Rust
69
star
21

fasttime

โฑ๏ธ A Fastly serverless compute@edge runtime for running wasm applications locally
Rust
60
star
22

tugboat

a small boat used for maneuvering docker vessels
Scala
58
star
23

serverless-aws-rust-multi

โšก๐Ÿ—๏ธ template for new aws lambda serverless rust http apps
Rust
56
star
24

afterparty

rust github webhook server
Rust
55
star
25

coffeescripted-sbt

pour some coffee for scala
Scala
55
star
26

again

โ™ป๏ธ Retry faillible Rustlang std library futures
Rust
54
star
27

ls

[discontinued] a scala card catalog
Scala
54
star
28

sbt-growl-plugin

Growling sbt test results so you don't have to
Scala
54
star
29

less-sbt

type less css in your sbt projects
CSS
45
star
30

envy-store

๐Ÿช deserialize AWS Parameter Store values into type safe structs
Rust
39
star
31

hubcat

hip cats and git hubs
Scala
34
star
32

zoey

taking scala to the zoo
Scala
29
star
33

json-env-logger

A structured JSON logger for Rust.
Rust
28
star
34

serverless-aws-rust-websockets

โšก๐Ÿ—๏ธ template for new aws lambda websocket serverless rust apps
Rust
27
star
35

setup-aws-copilot

๐Ÿ‘ฉโ€โœˆ๏ธ A GitHub Action for setting up and configuring the AWS Copilot command line interface
TypeScript
25
star
36

treeline

rust in trees
Rust
25
star
37

semverfi

always faithful, always loyal semantic versioning
Scala
23
star
38

unplanned

instant http
Scala
21
star
39

base64

the 64th base of rfc4648
Scala
21
star
40

mint

a makefile linter
Rust
20
star
41

screenprints

reprints for your terminal screen
Rust
19
star
42

porteurbars

๐Ÿšฒ a tool for sharing portable git hosted project templates
Rust
19
star
43

git-codeowners

a git extension to work with CODEOWNERS files
Rust
19
star
44

heroic

zero to hero Heroku deployment for sbt
Scala
18
star
45

assembly-sbt

Deploy fat JARs. Restart processes.
Scala
18
star
46

cappi

the sweetest sbt plugin your microbenchmarks will ever meet
Scala
17
star
47

capgun

fire when ready
Rust
15
star
48

ryu

A `Tornado Whirlwind Kick` scala client for the riak `raw` http interface
Scala
13
star
49

pine

process line output
Rust
13
star
50

scuttlebutt

Listen in on all the gossip going on in your kubernetes cluster ๐Ÿ™Š
Rust
12
star
51

waitout

awaits the completion of multiple async tasks
Rust
12
star
52

emoji-clock

๐Ÿ•’ ๐Ÿ‡ I'm late I'm late for a very important date
Rust
12
star
53

rust-bin

๐Ÿ—๏ธ๐Ÿ—‘๏ธ a recipe for Rust bins built, tested, and published with GitHub Actions
Shell
11
star
54

termsize

terminal size matters
Rust
11
star
55

unisockets

unix domain sockets that look just like tcp sockets
Scala
11
star
56

meow

a scala growl client that purs
Scala
11
star
57

serverless-aws-rust-kinesis

โšก๐Ÿ—๏ธ template for new aws lambda serverless kinesis rust apps
Rust
11
star
58

northeast-scala-symposium

event site for the northeast scala symposium
Scala
11
star
59

sigv4

๐Ÿ”โœ๏ธ aws sigv4 signed requests on the command line
Rust
10
star
60

typed-lambda

ฮป formal type definitions for aws lambda events
Makefile
9
star
61

codeowners

a rust crate for working with CODEOWNERS files
Rust
9
star
62

captcha_with_question

First attempt at a rails plugin. A form captcha with a textual question.
Ruby
9
star
63

treeline-scala

Renders nested tree branches in unicode and ascii
Scala
9
star
64

jot

just a thought
Scala
9
star
65

unfiltered-websockets.g8

unfiltered websockets g8 template
Scala
9
star
66

serverless-localhost

TypeScript
9
star
67

diffset

A GitHub Action for producing lists of files that changed between branches
TypeScript
8
star
68

aws-crossing

๐Ÿšธ Do cross AWS account work more efficiently
Rust
8
star
69

aws-credential-rotary

TypeScript
8
star
70

tee

tee for rustlang readers
Rust
8
star
71

serverless-yml-schema

a json schema file for serverless framework's serverless.yml file
8
star
72

guavapants

one pair of pants that makes both your guava _and_ scala types look good
Scala
8
star
73

serverless-lando

โšก๐Ÿ—๏ธ template for new serverless lando apps
Makefile
8
star
74

zig-lambda-runtime

an aws lambda runtime for zig
Zig
8
star
75

sinatra-doc

self documentaion for your sinatra app's routes
Ruby
7
star
76

serverless-oncall

โšก๐Ÿ“Ÿ Easily manage oncall for your serverless services
TypeScript
7
star
77

serverless-crowbar

โšก๐Ÿ—๏ธtemplate for new serverless crowbar apps
Makefile
7
star
78

action-time

7
star
79

unfiltered-gae.g8

unfiltered google app engine g8 template
Scala
7
star
80

gist

it's like git with an s between the i and t
Scala
7
star
81

sox

comfortable, well fitting documentation for your sbt settings
Scala
6
star
82

spakle

โ–โ–‡โ–โ–„โ–ƒโ–‚โ–„โ–„โ–†โ–†โ–…โ–ƒโ–…โ–โ–‚ just like nyc's skyline (or something like that)
Scala
6
star
83

dispatch-foursquare

databinder dispatch interface for foursquare api
Scala
6
star
84

muxup

demo meetup api python app
Python
6
star
85

porthole

tiny rust crate for resolving the next available network port
Rust
6
star
86

unfiltered-basic-auth.g8

unfiltered basic auth example g8 template
Scala
5
star
87

pj

a pajama party for your json strings and streamers
Scala
5
star
88

opener

everyone loves a good opener
Scala
5
star
89

ls-sbt

shhhh not ready yet
Scala
5
star
90

unfiltered.g8

template for unfiltered app
Scala
5
star
91

ls-server

[discontinued] scala's local librarian
Scala
5
star
92

zig-envy

parse env variables into zig structs
Zig
5
star
93

chrome-plugin.g8

g8 template for google chrome plugins
Scala
5
star
94

track-jacket

A slimly outfitted interface for getting your app up and running with marathon
Scala
4
star
95

stats

exporter of numbers, speaks statsd
Scala
4
star
96

enroute

๐Ÿ›ฉ๏ธ a parsimonious http request router
Rust
4
star
97

sing

Scala
4
star
98

broadcast

A rustlang adapter for writing to multiple sources
Rust
4
star
99

list_fu

erb list helper
Ruby
4
star
100

sysly

multi-transport syslog for rust
Rust
4
star