Giter Site home page Giter Site logo

mobilechat-web's Introduction

What is this

This is a simple demo using webSocket.You can chat with other people in the Internet.It is very easy to use.

#Demo# You can try this http://119.29.235.127:8080/

#environment#

  • Jdk7+
  • Tomcat 7(very important)
  • javaee 7
  • myeclipse2014(recommend)
  • windows or Linux server

#What should I do?#

  1. clone or download the code

  2. download 3 important jar google-collection ,,, javaee-api7,,,json-org

  3. paste them in project's WEB-INF=>lib folder

  4. find your ip address

  5. open main.js and change following(line 7ใ€8)

    var socket_url = '119.29.235.127';

  6. You may need to change (line 51) if your project is not at the root folder(for example my project is at the root folder)

    webSocket = new WebSocket("ws://" + socket_url + ":" + port + "/chat?name=" + name);

if the progect is at the "web" folder ,you should change like this

webSocket = new WebSocket("ws://" + socket_url + ":" + port + "/web/chat?name=" + name);
  1. upload your project to the server

#Any questions?# be free to contact me [email protected]

mobilechat-web's People

Contributors

gxcuit avatar

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.