move websocket code to new package socket
fix refactor dreg bug