added alarms, sockjs connection to localhost for testing