title: Cordova: Create socket server
body: <p>I want to make a chat mobile app with corodva, I want to transmit messages from phone to another phone directly <strong>without a server in the middle</strong>.
  So I'm thinking about a socket communication throught a socket server on one of the phones and exchanging messages directly.
  Is there a way to create a socket server with cordova like in Java ServerSocket ?</p>