add websocket addRegisterCallback

add websocket addRegisterCallback
Merge pull request #1 from yourihua/master

add websocket addRegisterCallback