com.caucho.websocket
Interface WebSocketEncoder<T>


public interface WebSocketEncoder<T>

Encodes an object as a web-socket message.


Method Summary
 void encode(WebSocketContext ws, T value)
           
 void flush(WebSocketContext ws)
           
 

Method Detail

encode

void encode(WebSocketContext ws,
            T value)
            throws java.io.IOException
Throws:
java.io.IOException

flush

void flush(WebSocketContext ws)
           throws java.io.IOException
Throws:
java.io.IOException