Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Connect to Secure WebSockets #20

Open
michaelahlers opened this issue Feb 26, 2015 · 2 comments
Open

Unable to Connect to Secure WebSockets #20

michaelahlers opened this issue Feb 26, 2015 · 2 comments

Comments

@michaelahlers
Copy link

I've got a trivial example:

val location = new URI("wss://echo.websocket.org:443")

val socket = new DefaultHookupClient(HookupClientConfig(uri = location)) {
  override def receive: Receive = {
    case message =>
      println(s"Received message: $message.")
  }

  connect() onSuccess {
    case _ =>
      println(s"Connected to $location.")

      context.system.scheduler.schedule(0 seconds, 1 second) {
        socket.send("Echo message.")
      }
  }
}

However, the only output I get is:

Connected to wss://echo.websocket.org:443.
Received message: Reconnecting.
Received message: Disconnected(None).

This occurs even if I provide a list of protocols to connect, and with every secure WebSocket I've tried. However, everything works correctly (and I get my echo replies) when connecting to ws://echo.websocket.org:80 and other insecure servers.

Does the client support SSL? Am I misusing it? Is it an environmental problem? (For reference, I'm using 0.3.0 for Scala 2.11.)

@michaelahlers
Copy link
Author

Well, I just noticed PR #11. Is there any possibility support could be added in the near future?

@svinci
Copy link

svinci commented Aug 11, 2015

Did you find a way to fix this? Did you migrate to another library?
I've the same problem now, and I didn't receive any answer from backchat about this issue.
How did you solve it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants