refactoring goxapi import
change default protocol to old websocket