add websocket addRegisterCallback

add websocket addRegisterCallback