Package com.iizigo.comm
Class WebSocketServer
java.lang.Object
com.iizigo.comm.WebSocketServer
The Web Socket Server of iiziGo inside Eclipse.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Dispose of the server.static WebSocketServer
Gets the instance of the Web Socket Server.static PanelEditorTransactionProcessor[]
Gets the list of available panel editors.static Worker
Gets the worker instance.static boolean
Checks if the server is started.static String
Registers a transaction processor used for device connections.static void
Unregisters a transaction processor used for device connections.
Method Details
getInstance
Gets the instance of the Web Socket Server.- Throws:
Exception
- For start errors.
getWorker
Gets the worker instance.- Parameters:
startedCallback
- Callback for started, null for none.- Throws:
IOException
isStarted
public static boolean isStarted()Checks if the server is started.registerTransactionProcessor
Registers a transaction processor used for device connections.- Parameters:
listener
- The listener for new connections.- Returns:
- The host name and port for the browser, null for already registered or cannot start web socket.
unregisterTransactionProcessor
Unregisters a transaction processor used for device connections.getPanelEditors
Gets the list of available panel editors.dispose
public void dispose()Dispose of the server.