Home > Net >  The problem of c # WebSocket connection information
The problem of c # WebSocket connection information

Time:02-23

 socket. OnOpen ()==& gt; 
{
Console. WriteLine (socket. ConnectionInfo. ClientIpAddress + ": WebSocket is open!" );
Console. WriteLine (socket. ConnectionInfo. Cookies, Count);
AllSockets. Add (socket);

};


Why get Cookies number 0 always?

This is the front place Cookies code
 $(document). Ready (function () {
$. Cookies (' userID ', '0000');

  •  Tags:  
  • C#
  • Related