I am stuck in user authentications; i want to authenticate user via username and password.
I did successfully connect via websocket but i don't know how to authenticate user i try lot of research over google but still i can't achieved my goal due to less number of work done on that.
The server API i want to request via JSON:
{ “UserName”: “UserName”, “Password”: “Password” }
and after request the server response is also JSON can some one please help me to achieve this. I am very thankful.
Basically i am new in WebSocket in Swift 4 that's why i am facing lot of issues on that i just used cocoapods of Starcream.
Thanks in advance.