BTW, using akka-http 2.0.3 (but it was happening on 2.0.2 as well) and 
scalajs 0.8.2 with scalajs-react 0.10.4

On Wednesday, February 3, 2016 at 10:46:10 AM UTC-8, Roberto Leibman wrote:
>
> The chrome dev console is showing this message when the page starts
>
> ---------
> WebSocket connection to 'wss://www.example.com:8083/processStatusUpdate' 
> failed: Connection closed before receiving a handshake response
> Error happened [object Event]
> OnClose was successful 1006-
> ---------------
>
> My server route looks like this:
>
>       authenticateLdap(authenticator.apply _) {
>         implicit user ⇒
>           path("processStatusUpdate") {
>             handleWebsocketMessages {
>               processStatusUpdateFlow(user)
>             }
>           }
>       }
>
>
> I know it gets inside the processStatusUpdateFlow function, since I have a 
> debug statement there, and the user does exist (there's other parts of the 
> route that have been called, and the BasicAuth handshake has already taken 
> place, I can see the data in the header in the chrome dev console)
>
> The client is super simple (it's a scalajs client):
>
>   val processUpdateSocket = new 
> WebSocket(s"wss://${window.location.host}/processStatusUpdate")
>   processUpdateSocket.onopen = {
>     (event: Event) ⇒
>       println(s"Onopen was successful: ${event}")
>   }
>   processUpdateSocket.onclose = {
>     (event: CloseEvent) ⇒
>       println(s"OnClose was successful ${event.code}-${event.reason}")
>   }
>   processUpdateSocket.onerror = {
>     (event: ErrorEvent) ⇒
>       println(s"Error happened ${event}")
>   }
>   processUpdateSocket.onmessage = {
>     (event: MessageEvent) ⇒
>       println(s"We got a message! ${event.data.toString}")
>   }
>
>
>

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