com.sun.grizzly.websockets
Interface WebSocketListener

All Known Implementing Classes:
ChatApplication, StickiesApplication, WebSocketAdapter, WebSocketApplication

public interface WebSocketListener


Method Summary
 void onClose(WebSocket socket)
           
 void onConnect(WebSocket socket)
           
 void onFragment(WebSocket socket, boolean last, byte[] bytes)
           
 void onMessage(WebSocket socket, byte[] bytes)
           
 void onMessage(WebSocket socket, String text)
           
 void onPing(WebSocket socket, byte[] bytes)
           
 void onPong(WebSocket socket, byte[] bytes)
           
 

Method Detail

onClose

void onClose(WebSocket socket)

onConnect

void onConnect(WebSocket socket)

onMessage

void onMessage(WebSocket socket,
               String text)

onMessage

void onMessage(WebSocket socket,
               byte[] bytes)

onPing

void onPing(WebSocket socket,
            byte[] bytes)

onPong

void onPong(WebSocket socket,
            byte[] bytes)

onFragment

void onFragment(WebSocket socket,
                boolean last,
                byte[] bytes)


Copyright © 2012 Oracle Corporation. All Rights Reserved.