Coder Social home page Coder Social logo

classical's People

Contributors

johndu9 avatar kongly1123 avatar mtdtao avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

classical's Issues

Blank Messages

Check for blank message in scripts.js and don't add them to the chat. Currently the servlet refuses to send them to other clients, blank messages only show up locally.

Data Exchange Spec?

As far as I understand, for chat room, the client POST the request with parameters of 'user', 'content', 'id' and 'parentId', and GET the JSON with those four params.

I have a few questions here:

  1. How does server notify the client when there's a new message arrived? Should client maintain a timer & keep querying the server, or the server will push the notification to the client?
  2. Every class has its own chat room. How does the uri reflect the class id? Is it like http://server/classid/chat? Sorry I don't really understand java, didn't get much info from the code.
  3. What are id and parentId here? Should a client prepare the id and parentId when POSTing the request?

And, how does one log into the system and retrieve the classid? Any spec here?

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.