big commit : interaction between client to rest app and between rest app and client via socket