Chat app with ionic and java server side (RESTful or Socket communication) ? need your explanation

Hi
i’m going to develop real time chat app with (private and group chat just with text , setting profile , message history , ) ionic 1 and angular 1 so i have java backend server,
so how can this chat app communicate with java server to send and receive msg …?.
in my opinion Client side application will communicate with server-side through REST calls !
or there is another way like socket or else ?
plz Help me with some explanation

Did you finish your project? Are you able to share it? Or sell it?

See: