module VORLON { declare var vorlonBaseURL ; export class ClientPlugin extends BasePlugin { public ClientCommands : any ; constructor ( name ) { super ( name ) ; } public startClientSide ( ) { } public onRealtimeMessageReceivedFromDashboardSide ( receivedObject ) { } public sendToDashboard ( data ) { if ( Core . Messenger ) Core . Messenger . sendRealtimeMessage ( this . getID ( ) , data , RuntimeSide . Client , "message" ) ; } public sendCommandToDashboard ( command , data = null ) { if ( Core . Messenger ) { Core . Messenger . sendRealtimeMessage ( this . getID ( ) , data , RuntimeSide . Client , "message" , command ) ; } } public trace ( message ) { console . log ( message ) ; } public refresh ( ) { console . error ( "Please override plugin.refresh()" ) ; } public _loadNewScriptAsync ( scriptName , callback , waitForDOMContentLoaded ? ) { callback ( ) ; } } }