background preloader

Chat

Facebook Twitter

ShowCase. Package org.primefaces.examples.push.chat; import java.io.Serializable; import org.primefaces.context.RequestContext; import org.primefaces.push.EventBus;

ShowCase

Community: JavaScript Chat API Reference. Contents This document is intended for developers who want to use LivePerson's chat solution from a web browser.

Community: JavaScript Chat API Reference

For getting started information, refer to Getting Started: Building a Chat Window with JavaScript. Embedding the Code To create a Web page that includes chat, you need to place some initial code in the <head> tag. This code includes the account configuration, callbacks declarations and static code. Building an Internet chat system. You may have seen one of the many Java-based chat systems that have popped up on the Web.

Building an Internet chat system

After reading this article, you'll understand how they work -- and know how to build a simple chat system of your own. This simple example of a client/server system is intended to demonstrate how to build applications using just the streams available in the standard API. The chat uses TCP/IP sockets to communicate, and can be embedded easily in a Web page. For reference, we provide a sidebar explaining Java network programming components that are relevant to this application.