Changing cloud server to use raw socket instead of Web socket instance.