def connectRemote(self,connection,respHeader,c):
     if self._socketType=="UNIX":
         sc=SockClient(self._socket,self.uri,self)
     
     else:
         sc=SockClient(self._socket,connection,self)
     
         
     self.sockClient=sc
     sc.start()    
     WebSocketHandler.handshakeSuccessful(self, respHeader,c)
     Log.info("".join([str(self._socketType)," bridge established to ",str(self.uri)]))        
 def disconnected(self, reason):
     Log.info("".join([str(self._socketType)," bridge closed for ",str(self.uri)," > ",reason]))
     if hasattr(self,"sockClient"): 
         self.sockClient.stop()
     WebSocketHandler.disconnected(self, reason)
 def __init__(self):
     WebSocketHandler.__init__(self)
     self._policyControl=PolicyControl.getInstance()