File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

Connection to Websocket

M Bryan
Ranch Hand

Joined: Jun 15, 2011
Posts: 64
Hi,

I have found a website that offers to get updated on actions using websockets: https://en.bitcoin.it/wiki/MtGox/API/Streaming
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:
http://www.oracle.com/technetwork/java/socket-140484.html
Danny Coward
Author
Greenhorn

Joined: Sep 25, 2013
Posts: 6
    
    5

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.
 
jQuery in Action, 2nd edition
 
subject: Connection to Websocket