The moose likes Sockets and Internet Protocols and the fly likes Connection to Websocket Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Connection to Websocket" Watch "Connection to Websocket" New topic

Connection to Websocket

M Bryan
Ranch Hand

Joined: Jun 15, 2011
Posts: 64

I have found a website that offers to get updated on actions using websockets:
I want to write a program that writes changes in market prices into a database. The last part is not the problem as well as what to do with that data. But from the given examples and the ones found on the net I have no idea how to start. The examples I found all were about creating a websocket server, not connecting to one.
Does anyone of you knows a good starting point?

Thank you
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

All the examples I've seen have both a client and a server for a java socket. Here is one that helped me:
Danny Coward

Joined: Sep 25, 2013
Posts: 6

Hopefully this is old news but there's a new Java WebSocket API in Java EE 7.

So its in Glassfish 4.0, which has some samples too.

And there's a new book which I wrote if you like WebSockets, you can find it easily on Amazon.
I agree. Here's the link:
subject: Connection to Websocket
It's not a secret anymore!