running app as a socket app