Skip to content

Instantly share code, notes, and snippets.

View DaveDeCaprio's full-sized avatar

David DeCaprio DaveDeCaprio

View GitHub Profile
@DaveDeCaprio
DaveDeCaprio / gist:4db9d36a5e907fb5810c00e919347aa3
Created January 12, 2018 19:10
Lagom websockets client using Akka HTTP
import java.net.URI
import java.util.Locale
import akka.NotUsed
import akka.actor.ActorSystem
import akka.http.scaladsl.Http
import akka.http.scaladsl.model.headers.RawHeader
import akka.http.scaladsl.model.ws._
import akka.http.scaladsl.model.{HttpHeader, Uri}
import akka.stream.ActorMaterializer