Hi Dagny,

The dependency you need is akka-http-testkit, so in sbt an entry like
this: "com.typesafe.akka"
%% "akka-http-testkit" % akkaV % "test"
It also depends on scalatest, we use version 2.2.1 and I see you have put a
dependency on a snapshot of Scalatest 3, this may cause some problems, you
should notice those as it probably wont compile if there is an
incompability.

The complete example file used in the docs can be found here, and should
help you see what imports are needed:
https://github.com/akka/akka/blob/4acc1cca6a27be0ff80f801de3640f91343dce94/akka-docs/rst/scala/code/docs/http/scaladsl/server/directives/WebSocketDirectivesExamplesSpec.scala

--
Johan
Akka Team

On Wed, Aug 31, 2016 at 10:32 PM, Dagny T <[email protected]> wrote:

>
> TYPO!  My latest WebSocketServer experiment is ACTUALLY in:
> - streamsWebSocket.scala
>
>
> On Wednesday, August 31, 2016 at 1:23:36 PM UTC-7, Dagny T wrote:
>>
>> Newbie Testing WebSocket on Stream.
>>
>> Needed to verify I'm following best-practices on the basics for this!
>>
>> Please refer to my Repo:
>> https://github.com/DagnyTagg2013/ScalaReactive/tree/master/newbie
>>
>> 1) Tried initiating Web Socket Connection JS Client: basicWebSockets.js
>> then handling it on an Akka Streams Server with an Http Request Handler:
>> firstWebSocketServer.scala
>>
>> 2) Tried to test Server with Akka TestKit; but missing build.sbt
>> dependencies for WS(...) and RoutingSpec(...)
>> - Test code here: testWebSocketServer2.scala
>> - Dependencies here:  build.sbt
>>
>> If someone could please comment on how to:
>> - successfully get a WebSocket connection from (1) -- am I setting up the
>> JS and Scala connection correctly?
>> - successfully get the test dependencies to build from (2) -- am I using
>> the correct version of Akka Test libraries to work the the code in
>> testWebSocketServer2?
>>
>> THANKS a lot!
>> D
>>
>> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Akka Team
Lightbend <http://www.lightbend.com/> - Reactive apps on the JVM
Twitter: @akkateam

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to