Implemented WSS and rest api