Wait what? Why the fuck would anyone use this?
You need to encrypt messages FROM the client, and pass it directly TO the other user. The server cannot know anything of the contents of the message. See cryptocat for an implementation.
Thanks for the feedback friend. cryptocat is a great piece of software also, but a different scope than this project.