LiveChat Starter Kit version 2 uses SignalR as the core communication mechanism.
You can add LCSK to your ASP.NET project via NuGet
Install-Package LCSL
To manually add LCSK to an existing ASP.NET app do the following:
- Copy the LCSK folder to your ASP.NET project
- Install SignalR from your package manager window
Install-Package Microsoft.AspNet.SignalR
- Add the following to you Global.asax before any other routing instruction:
RouteTable.Routes.MapHubs();
- Include the following javascript tags where you want the visitor to see the chat box:
<script src="/Scripts/jquery.signalR-1.0.1.min.js" type="text/javascript"></script>
<script src="/signalr/hubs" type="text/javascript"></script>
<script src="/LCSK/chat.js" type="text/javascript"></script>
Make sure you
already have jQuery included before those tags.
Sign in as a test agent
- Navigate to the /lcsk/install.html page and assign the admin and agent passwords.
- You can now log in on /lcsk/agent.html using any name and either the admin or agent password.
Simulate a visitor
- Open another browser
- Open the chat box and enter a message