Skip to content

Commit

Permalink
fixed quick start sample: LiveChat
Browse files Browse the repository at this point in the history
  • Loading branch information
kerryjiang committed Aug 18, 2024
1 parent b592d70 commit 90d26c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions samples/LiveChat/Commands/COMMAND_CON.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using SuperSocket;
Expand All @@ -17,7 +17,7 @@ public CON(RoomService roomService)
_roomService = roomService;
}

public async ValueTask ExecuteAsync(ChatSession session, StringPackageInfo package)
public async ValueTask ExecuteAsync(ChatSession session, StringPackageInfo package, CancellationToken cancellationToken)
{
session.Name = package.Body;
await _roomService.EnterRoom(session);
Expand Down
4 changes: 2 additions & 2 deletions samples/LiveChat/Commands/MSG.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Logging;
using SuperSocket;
Expand All @@ -17,7 +17,7 @@ public MSG(RoomService roomService)
_roomService = roomService;
}

public async ValueTask ExecuteAsync(ChatSession session, StringPackageInfo package)
public async ValueTask ExecuteAsync(ChatSession session, StringPackageInfo package, CancellationToken cancellationToken)
{
await _roomService.BroadcastMessage(session, package.Body);
}
Expand Down
2 changes: 1 addition & 1 deletion samples/LiveChat/LiveChat.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SuperSocket.WebSocketServer" Version="2.0.0-beta.8" />
<ProjectReference Include="..\..\src\SuperSocket.WebSocket.Server\SuperSocket.WebSocket.Server.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 90d26c2

Please sign in to comment.