Hi!

Just getting back to this; and THANKS for the sbt dependencies info -- I'll
have to try that out.
It looks like I already had the http testkit; but you're using an
additional "test" specifier ...;
and then your ScalaTest note is helpful too.

Would be awesome for Scala/Akka to have the equivalent of Java's
"Jarfinder" website to lookup SBT Maven Artifacts by Classname!

Here's a cheeky request:
* Any chance you guys could Blog and put Links to GitHub for "Newbie
Reference Implementations" for putting together focused learning code
samples like this?
* Otherwise, could you get someone who is good at teaching Newbies; publish
a coherent learning progression project with Manning on the latest and
greatest Streams-Microservices-Architecture techniques?

Thanks so much again!
D







On Thu, Sep 8, 2016 at 6:03 AM, Akka Team <[email protected]> wrote:

> 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/4acc1cca6a27be0ff80f801de3640f
> 91343dce94/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/c
>> urrent/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 a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/akka-user/aC19F2J-QSY/unsubscribe.
> To unsubscribe from this group and all its topics, 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.
>

-- 
>>>>>>>>>>      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