Class EchoProtocol

java.lang.Object
org.atmosphere.websocket.protocol.EchoProtocol
All Implemented Interfaces:
AtmosphereConfigAware, WebSocketProtocol

public class EchoProtocol extends Object implements WebSocketProtocol
Simple WebSocketProcessor that invoke the Broadcaster.broadcast(java.lang.Object) API when a WebSocket message is received.

NOTE: If WebSocket frame are used the bytes will be decoded into a String, which reduce performance.

Author:
Jeanfrancois Arcand