use reconnecting websocket
fix angular Function type