How to send message to socket client
<p>I would like to add a method to send a String of message to client, it was hard to find a good example on the web. Does it use <code>write</code> for sending message to port 8090, do I need to add flush as well?</p>

<pre><code>try {
    InetAddress addr = InetAddress.getByName("127.0.0.1");
    int port = 8090;

    Socket socket = new Socket(addr, port);


} catch (UnknownHostException e) {
} catch (IOException e) {
}
</code></pre>
