e>public interface <span class="typeNameLabel">Encoder</span></pre>
<div class="block">The Encoder interface defines how developers can provide a way to convert their custom objects into web socket
 messages. The Encoder interface contains subinterfaces that allow encoding algorithms to encode custom objects to:
 text, binary data, character stream and write to an output stream. The websocket implementation creates a new
 instance of the encoder per endpoint instance per connection. This means that each enc