171172173174175176177178179
} static class Listener implements WebSocketClientTokenListener { public void processOpened(WebSocketClientEvent aEvent) { Message lMsg = new Message(); lMsg.what = MT_OPENED; messageHandler.sendMessage(lMsg); }
177178179180181182183184185186
lMsg.what = MT_OPENED; messageHandler.sendMessage(lMsg); } public void processPacket(WebSocketClientEvent aEvent, WebSocketPacket aPacket) { Message lMsg = new Message(); lMsg.what = MT_PACKET; lMsg.obj = aPacket; messageHandler.sendMessage(lMsg); }
184185186187188189190191192193
lMsg.obj = aPacket; messageHandler.sendMessage(lMsg); } public void processToken(WebSocketClientEvent aEvent, Token aToken) { Message lMsg = new Message(); lMsg.what = MT_TOKEN; lMsg.obj = aToken; messageHandler.sendMessage(lMsg); }
191192193194195196197198199
lMsg.obj = aToken; messageHandler.sendMessage(lMsg); } public void processClosed(WebSocketClientEvent aEvent) { Message lMsg = new Message(); lMsg.what = MT_CLOSED; messageHandler.sendMessage(lMsg); }