Giter Site home page Giter Site logo

lcsk's Introduction

lcsk's People

Contributors

dstpierre avatar jhermiz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lcsk's Issues

Send file option in chat window

Hi dstpierre,
Thanks for such a nice implementation. I have implemented chat window on my demo application which is working fine. I want to include send file option where visitor can b able to send file to agent or agent can send file to visitor. How can i achieve that can u plz guide me on that ?
By the way, I am using asp.net web forms.

Thanks in advance

Problems with deployment on W2008R2

Hi there
I found this jewel, and decided to test it, and on my PC it worked fine using the local server tied internally to Visual Studio 2013, then I set it up on a local W2008R2 server, in a webApp directory:
/chat
Initially it did not work, but after renaming the start of the 3 sentences, that includes the whole .js code in the original html, it started to show the little chat-popup on the right bottom.
But, all the admin stuff did not work, I tried it once, on my computer,
As I did the deployment to the server, using VS 2013 automated deployment, the encrypted passwords file was copied, but the pages did not accept any pwd, and hence I did put the correct passwords there!
The I deleted the password file, (and reading the code) it should re-create it,
But it still kept asking for the password, and not the re-registration procedure.
May be I am not too familiarized with MVC4 ¿could this have been kept in the server's cache?
I tried to debug the code, and set breakpoints, and the code never reached the .CS code section on login ¿am I doing something wrong?
I believe I am a skilled programmer, used to VS2010 until now,
I was heavily using .aspx web-forms, internal code (algorithms, AI, etc.) used old-fashion and complicated remoting and appdomain schema, but did only some minor ALAX code using JQuery never (until now) met SignalIR as a multi-protocol code-proxysm nor AngularJS and the other quirks used here.
I was using a W2003R2 server, adn had to upgrade, because it does not support ASP.NET 4.5, (only until 4.0) WTF!
¿any clue?
.

I'm considering a brand new project and LCSK is not maintained anymore

First I would like to say that LCSK in its .NET version is not maintained anymore. I'm no more a .NET developer for a long time now and this project already exceeded what it was supposed to be at first in 2007, which was a simple getting started project to build a more complete live chat app.

Thanks to everyone that has been involved, tried the project and contribute.

I have another project I'm currently evaluating. I always liked live chat and offering A1 support to users and website visitors. I also know there is not much open source projects that offer similar features of product like Intercom, Drift. This might be something I would like to build and use Live Coding at the same time.

An ambitious project for sure, and some might ask why open source this instead of building a SaaS. Well, I already have a startup Roadmap and does not really want to enter that market and compete. It's just something I'd like to build :)

So depending on reactions and demand, I'm kind of trying to validate this open source project before building it.

Please let me know if it's something you would use.
Thanks

Error undefined 'hub'

Hello,

I have an issue after install LCKS chat. I've done:

  • I've created a new web application (Visual Studio 2013 .NET 4.5) MVC template
  • LCKS Installed from NUGET
  • "[assembly: OwinStartup(typeof(" changed from Startup.cs to my current namespace
  • scripts added in "index.cshtml" <script src="~/LCSK/assets/js/jquery-2.1.1.min.js" type="text/javascript"></script> <script src="~/LCSK/assets/js/jquery.signalR-2.1.1.min.js" type="text/javascript"></script> <script src="/signalr/hubs" type="text/javascript"></script> <script src="~/LCSK/chat.js" type="text/javascript"></script>
  • Run my application
    Exception (all browsers): Error chat.js Line 69: 'hub' undefined ($.connection.hub.start())
  • 'Contact us' appears but Chatbox doesn't

Thanks in advance

Separate Live Chat site

Is it possible to put live chat on a separate site and send traffics to live chat site for farms and sites with large amount of request.
and another issue is making messages smaller an improve performance.
(for an instance using attributes for model to make it smaller.)

[messenger]: Build the back end realtime communication

The communication channel will use web socket. The messages will be persisted to the database. All agents will be able to jump in chat.

There will be a concept of conversation when in signed-in mode.

  • Start the backend package with concept of visitor/user and agent conversation
  • Have a way to identify visitor/user
  • User can create new conversation
  • Agent can push in-app messages
  • Website visitors can start conversation and leave email if no one is online

nopCommerce plugin

Requested on Codeplex. Creating a plugin for nopCommerce to make this easy to add LCSK to a nopCommerce store.

Integration in a class Library and web app

I have a class library with my chatHub.cs and then i have my web aplication with html files and so on.
Is it possible to integration your code in the class library and making it work?

I tried to copy all the methdos in your chatHub.cs to my chathub.cs then I copied LCSK folder to my web app.

I removed agent.cs from that folder and put it on my class library in models folder.

When i run the application and make install.html the start page.. I type a password, then i click login and i got a bunch of errors:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)
http://localhost:51858/signalr/hubs

Uncaught TypeError: Cannot read property 'client' of undefined
2install.js:13 Uncaught TypeError: Cannot read property 'server' of undefined

Connection must be started before data can be sent. Call .start() before .send()

I was chatting with the client, after 5-10 minutes the connection was lost. Then I used Firebug to check out the errors, I tried to send messages to the client but it noticed that "Connection must be started before data can be sent. Call .start() before .send()". Meanwhile, the client still saw me online on his homepage and keep chatting with me but messages could not be sent
I cant connect with my client but when he clicked in the website, it still has the tab "chat with us"

nh ch p man hinh 2015-05-14 luc 11 46 37 ch
nh ch p man hinh 2015-05-14 luc 11 48 17 ch

Orchard plugin

This was requested from Codeplex.

I'm not going to do this plugin because lack of experiences / interests in Orchard, but if someone wants to do this, go ahead.

Confirm Navigation Message

When I close agent tab, an alert pops up.

Where do I enable/disable that alert and how can I change the content of that alert?

Closing visitor Tab

If I have an agent logged in, and the visitor quits the conversation, the entry in real time visits table is still displayed there..

How can I solve this issue?

"Engage In Chat" should open the message window

If I'm an agent and I see via the agent.html file that a new user has entered my site. If I click "Engage User" it should open up the messaging window on the user's side, otherwise all they hear is a beep. They then have to click this message window to actually see that I am trying to interact with them.

How would an end user ever know you are interacting with them if this window remains shut ?

@dstpierre you've got this for EngageVisitor

    public void EngageVisitor(string connectionId)
    {
        var agent = _agents.SingleOrDefault(x => x.Value.Id == Context.ConnectionId).Value;
        if (agent == null) return;
        _chatSessions.TryAdd(connectionId, agent.Id);
        Clients.Caller.newChat(connectionId);
        Clients.Client(connectionId).setChat(connectionId, agent.Name, false);
        Clients.Caller.addMessage(connectionId, "system", "You invited this visitor to chat...");
        Clients.Client(connectionId).addMessage(agent.Name, "Hey there. I'm " + agent.Name + " let me know if you have any questions.");
    }

Is there a way to somehow call: $("#chat-box").slideToggle(); immediately after this call so that the visitor knows someone is interacting with them?

New feature on Closing agent browser

I want to implement some new features, but i have some doubts on how to do it.

In my agent page, i added a logout button. When I press this button, it calls a server side method, that disconnects that agent, removes that agents from the list, and show me the login form again.

Now i want to add this feature:

Imagine the agent (jon) is chatting with a visitor and he closes the browser withou setting offline..

I want to remove that agent from the list of agents and notify the visitor that the agent has gone.

How can I do it?

Sessions

How can I implement and handle sessions?

I want to login and maintain my sessions. I want to close the browser and, re-open the browser again and my session is still on.

Jabbr does that.

Anyone?

What Changes Should Be Made in Aspx Web Form Page To Get The Chat

Sir i need a help from you..

  1. I have Created One Asp.net Empty Web Application Project in .NET FrameWork 4.5.
    2.Then I installed LCSK From NuGet. And It got installed Succesfully.
    3.Then I Created One ASP.net webform in same Web application And Copied That three <script> lines in the source code but when i request the page in Browser No chat app is Doct below instead It is giving Some IIS Error.
    I want to know that where exactly and what changes I have to make, I read your Tutorial But Still I am unable to get it.
    iis eroor
    webform

Actually I want That Chat App To Run in My Web form Pages...

Waiting For Your Help Thanks Sir
iis eroor
webform

Demo.LCSK.Startup Reference

Do we need to include demo project folder from repository as after installing from Nuget it is by default referencing [assembly: OwinStartup(typeof(Demo.LCSK.Startup))].

Chatbox not opening

Following error is being recieved: Uncaught TypeError: Cannot read property 'hub' of undefined

How to change the DefaultConnection database

Hi,
Nice project.
It is mentioned in the web.config file that we can change the database reference from default one. I want to store all the data of chat in my MS-SQL server. Can you provide the database structure required to your project ?

Some problems with setting offline/online agents

I run some test case and I believe I found some issues:

Test Case 1:

  1. Run Localhost, go to visitor page.
  2. Run Localhost, go to agent page.
  3. Login as agent.
  4. Visitor get "chat with us".
  5. I set first agent offline and close browser.
  6. Visitor get "contact us"
  7. Login as agent ( diferent name from the above).
  8. Visitor still gets "contact us"

I believe this is an issue.

Test Case 2:

  1. Run Localhost and created 2 agents.
  2. set them offline and close the 2 browsers.
  3. stop localhost.
  4. Run localhost again.
  5. create another agent, and the list of agents still has the 2 ones I created before..

How to fix this?

Test Case 3:

  1. Login as agent(name: jon)
  2. Run localhost as visitor
  3. Visitor talk with jon
  4. agent jon set offline and close
  5. If i want login with the same agent name i can't

I think it should be possible..

Any previous version that was made for (and would work on) .NET4.0 [resolved + answer]

Do you have any older version that works on .net 4.0 and not on the 4.5 ? The current site I'm working on is built in VS10 on dotNet 4.0 and some other factors don't allow me to upgrade currently ... Other than that I believe this is the best of its kind around the web, great work.

Thanks,
Ivo

P.P. I don' think there is one but it may be possible to embed it in my site with iFrame or something like that ?

Agent different login system

I want to implement an agent login system where i have a sql database with a table called users, with a column bool IsAdmin.

My idea is when I go to ...LCSK/Agent.html i put some credentials, then it goes to db and login or not depending if it's and admin or not.. can you help me?

Error when another Startup.cs file exists

Find a way to correctly add the needed SignalR configuration in the OWIN Startup class when installing via NuGet.

At the moment, if there's an existing Startup.cs file an exception is thrown when the application starts since only one Startup configuration class is allowed.

How to reproduce:

  1. Create a blank ASP.NET MVC project
  2. Install-Package LCSK
  3. Start the app

How to fix the issue:

Take the app.MapSignalR(); in the /LCSK/Startup.cs file and copy it to your existing /Startup.cs and remove the /LCSK/Startup.cs file.

when the administrator escaped or F5 http://domain.com/lcsk/agent.html, it had an error that the administrator could not chat nor see what client on the website. So they noticed me

Hello, I successfully installed it on my asp.net mvc5 website.
After I logged in as an agent and then click agent panel link, or if I close the browser tab, the session got lost, and I couldn't log in as the same agent. However from the front end visitor page, the visitor still see the chat window, he can still send message to that agent, but there is no way to see the message from the back end(the agent page) Any help will be appreciated.
Thanks

Allow transfer of chat to another agent

From a chat session an agent should be able to transfer the current chat session to another agent via the command system i.e. /transfer [agent-name] or similar process.

Better visitor information when chat session starts

Once a chat session open it would be nice to have more information about the visitor like City/Country, the referrer URL, how many pages they've seen etc.

This would involve keeping the pages visited somehow and perform queries on that data.

Email Issue

If there is no agent and client try to send an email program send email to client not agent.
I think it should send an email to agent or default email and then a notification to client.

Engage in Chat button

When I click "engage in chat" option, it keeps me adding conversations in the left side... is this an error?
how can i fix this?

Error on Aspx page

Copied the 3 lines to my aspx login page.

<script src="Modules/LiveSupport/lcsk/assets/js/jquery.signalR-2.1.1.min.js" type="text/javascript"></script>
<script src="/signalr/hubs" type="text/javascript" type="text/javascript"></script>
<script src="Modules/LiveSupport/lcsk/chat.js" type="text/javascript"></script>

The other one, jquery reference was already there
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>

And when I'm running the app I get this errors:

image

Can you help?

Contributor

How can i be a contributor?
I want to add some funcionalities i've been developping

lost agent session

Hello,
I successfully installed it on my asp.net webform website.
After I logged in as an agent and then click agent panel link, or if I close the browser tab, the session got lost, and I couldn't log in as the same agent.
However from the front end visitor page, the visitor still see the chat window, he can still send message to that agent, but there is no way to see the message from the back end(the agent page)
Any help will be appreciated.
Thanks,

Cannot Login Or Create DAT file

I am running VS 2013, Framework 4.5, I have demo installed on same computer and that works fine. I added LCSK into my WebForms project using Nuget. Changed the Startup.CS Demo.LCSK.Startup to my namespace so everything compiles. The chat shows up in bottom right of my site and I can email from it (after configuring the sendmail script) when I run my project.

I added an empty App_Dat folder to the project. I run my project and go to /lcsk/install.html and only the admin login shows up (which is different than the demo which shows both the agent and admin password). When I type a password and hit button, nothing happens. When I go to agent.html and enter password and click button nothing happens. I then copied lcsk.dat from demo project into my project app_data directory, run project and go to agent.html to try to log in and still nothing happens when I click button. Any idea what may be issue. Thank you for your help.

When visitor changes pages, a new data-id is created each time.

I noticed that a new row in the Real Time Visits is created for the same visitor as they view different pages of the website, each row has a different data-id - this can be confusing to the Agents as, if they click an engage in chat link (that was created by a prior page), the message goes nowhere and the visitor will not see it. Only the very last row link will work (for that unique visitor).
On the visitor's side, they lose the conversation if they switch to another page, but it still remembers to continue the chat with the correct agent.
On the Agent's chat window, the system reports "The visitor closed the connection" then immediately reports "The visitor is now on http:// .... " when the visitor switches pages.
Is there a way around this?

Agent appears offline after numerous hours of begin login

Great project. I am using it on a MVC 5 site.

I login as a Agent and can see the site's traffic. On the actual site, I appear to be online.

After 3+ hours of being login, my Agent Panel does not update new "Real time visits". Also, at this point I appear as offline on the site. I have to Refresh the Agent Panel page and login again to appear online.

Is there a way work around this timeout?

Thanks.

LCSK not Getting Installed In my VS2012 Web Applicaion-Its Urgent Please Help To Solve the issue!!!!

Install failed. Rolling back...
Install-Package : Could not install package 'Microsoft.Owin.Security 2.0.1'. You are trying to install this package into a project that targets
'.NETFramework,Version=v4.0', but the package does not contain any assembly references or content files that are compatible with that framework. For
more information, contact the package author.
At line:1 char:1

  • Install-Package LCSK
  • - CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    - FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
    
    

lcsk

Need Urgent HELP!!!!

How to incorporate live chat in webform version 4.0

our company web site has been developed with VS2010 and jquery version we use the default one jquery-1.4.1.js and i guess we can not install signalr 2.x version rather i need to stick with signalr 1.x version.

so this is my limitation and now tell me how could i incorporate live chat in webform project version 4.0 ?
many years back live chat comes with a web interface for customer and win apps for agent. is it now possible to download the old live chat project now?

please guide me with your valuable guidance for incorporation of live chat into our project. thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.