Web Socket Example (Java and JavaScript)