authentication - Manage users using WebsocketSharp -


i'm working on websocketsharp , having difficulties:

  1. 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

  2. how id of sender, because don't see instruction in readme.md file on github.
  3. 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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -