Given:public class Product {
private long id;
private String name;
private double price;
// Getters and setters ...
}
Using WebSockets, you need to convert an instance of this class to a binary message and send it as a stream in an asynchronous way.
Which classes and methods do you have to use to implement these requirements?