groupchatv2's People
groupchatv2's Issues
How will we save files for offline users?
Make sure clients get their handlers
Each connecting socket is given their own ClientHandler, now we need to deal with the opposite scenario.
Sending files from clients to server
- Copy the file to
/files/<recipient>/
- Embed file as an actual file in Message
- Send the file to the server
- Remove the copy
Help server survive ungraceful client shutdowns
Differentiate between offline and online users?
Currently the client is supplied with all offline users. Maybe this is of no actual concern?
Sort messages by timestamp
Could probably be done by writing out the whole timestamp in an integer and comparing those
Clients should save their own sent messages in the corresponding text file
Save files from messages to clients local computer
Let clients open files by clicking on the links in the chat
Make use of file compression for less I/O operations
Let clients save messages to send to server, in case server goes down?
The broken socket would throw exceptions, but the legwork for it is otherwise almost done
Stop receivedMessage in Client.java from halting thread
public ObjectInputStream(InputStream in)
throws IOExceptionCreates an ObjectInputStream that reads from the specified InputStream. A serialization stream header is read from the stream and verified. This constructor will block until the corresponding ObjectOutputStream has written and flushed the header.
If a security manager is installed, this constructor will check for the "enableSubclassImplementation" SerializablePermission when invoked directly or indirectly by the constructor of a subclass which overrides the ObjectInputStream.readFields or ObjectInputStream.readUnshared methods.
Let clients connect to the server
Make sure clients can connect to the server
Add timestamps to messages
ClientHandler needs Input and Output threads
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.