mirror of
https://github.com/sbrl/Nibriboard.git
synced 2018-01-10 21:33:49 +00:00
[server] Bugfix displaying the logged in user in terminal log
This commit is contained in:
parent
fc46267003
commit
8969022fe3
1 changed files with 5 additions and 6 deletions
|
@ -145,12 +145,6 @@ namespace Nibriboard.Client
|
||||||
|
|
||||||
public NibriClient(NibriboardApp inManager, WebsocketClient inClient)
|
public NibriClient(NibriboardApp inManager, WebsocketClient inClient)
|
||||||
{
|
{
|
||||||
Log.WriteLine(
|
|
||||||
"[Nibriboard/WebSocket] New NibriClient connected with id #{0} for user {1}.",
|
|
||||||
Id,
|
|
||||||
ConnectedUser != null ? ConnectedUser.Username : "Anonymous"
|
|
||||||
);
|
|
||||||
|
|
||||||
manager = inManager;
|
manager = inManager;
|
||||||
connection = inClient;
|
connection = inClient;
|
||||||
|
|
||||||
|
@ -158,6 +152,11 @@ namespace Nibriboard.Client
|
||||||
connection.OnDisconnection += handleDisconnection;
|
connection.OnDisconnection += handleDisconnection;
|
||||||
connection.OnTextMessage += handleMessage;
|
connection.OnTextMessage += handleMessage;
|
||||||
|
|
||||||
|
Log.WriteLine(
|
||||||
|
"[Nibriboard/WebSocket] New NibriClient connected with id #{0} for user {1}.",
|
||||||
|
Id,
|
||||||
|
ConnectedUser != null ? ConnectedUser.Username : "Anonymous"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private async Task handleMessage(object sender, TextMessageEventArgs eventArgs)
|
private async Task handleMessage(object sender, TextMessageEventArgs eventArgs)
|
||||||
|
|
Loading…
Reference in a new issue