authentication - Manage users using WebsocketSharp -
i'm working on websocketsharp , having difficulties:
is there anyway handle authentication of websocket based on authentication system on asp.net webapi, because i'm planning host websocketsharp server in asp.net webapi.
update i'm clear part. they're 2 seperate apps running on same server. no interaction , forth
- how id of sender, because don't see instruction in readme.md file on github.
- how send message specific user, or anyway, specific connection id. example give sessions.broadcast send connected clients.
websocketsharp github site: https://github.com/sta/websocket-sharp
you cannot integrate websocketsharp in asp.net, if host in same process. works on own tcp port, unaware of asp.net/iis http modules work authentication.
so have manual work cookies/headers yourself, opening auth cookie or header used , evaluate yourself.
for 2nd , 3rd questions, there many ways of doing that. general programming , not particular of websockets. take of chat example using websockets, give ideas.
Comments
Post a Comment