Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on open client socket procedure #79

Open
ellLazar opened this issue Jul 18, 2016 · 4 comments
Open

on open client socket procedure #79

ellLazar opened this issue Jul 18, 2016 · 4 comments
Labels

Comments

@ellLazar
Copy link

on open client socket( from javascript) connection procedure

what is the procedure name in socket server project, so I would like to add a log on each client connected to Socket Server ?

@vtortola
Copy link
Owner

I don't know if I understood your question. If you want to log when a client connects to the server, probably doing it after AcceptWebSocketAsync returns a new connected client is the right place.

@ellLazar
Copy link
Author

AcceptWebSocketAsync
yes, it fires once on client connect
if I want to take some properties on this connection like:
remote address the connect comes from
or some user info, and more, is there any doc about ?

@vtortola
Copy link
Owner

You can find that information in the properties:

  • WebSocket.LocalEndpoint
  • WebSocket.RemoteEndpoint
  • WebSocket.HttpRequest

Cheers.

@ellLazar
Copy link
Author

ellLazar commented Aug 3, 2016

how to get socket ID ?
so I can define it in some List with a uniqe value
something like :
WebSocket.SocketID

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants