add state command for websocket connection
Merge pull request #16 from easeway/get-regids

add state command for websocket connection