clean files and use sockjs