public static interface

WebSocket.EventHandler

chan.http.WebSocket.EventHandler

Class Overview

Callback for read socket data.

Summary

Public Methods
abstract void onEvent(WebSocket.Event event)

Callback method.

Public Methods

public abstract void onEvent (WebSocket.Event event)

Callback method.

This method is invoked from a separate thread, so you should use synchronization to access data from thread with running web socket. You can use store(String, Object) and get(String) methods for this purpose.

Parameters
event WebSocket.Event: Event data.