Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection to Websocket

 
M Bryan
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 820
IntelliJ IDE Tomcat Server VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
5
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic