Skip to main content
1 of 7
Josh
  • 563
  • 3
  • 12

ThirdPlace JavaScript chat library

##Screenshot / Code Snippet

Screen Capture

var room = ThirdPlace.Room.GetCurrentRoom();
var message = new ThirdPlace.Message;
message.room_id = room.id;
message.content = "ThirdPlace.js is a library which abstracts some of the concepts of the SE Chat system (the \"Third Place\") into easy to use JavaScript objects.";
message.post();
message.content += " You can find it over at StackApps.";
message.post();

##About

ThirdPlace.js is a library which abstracts some of the concepts of the SE Chat system (the "Third Place") into easy to use JavaScript objects. It's still very much a work in progress, but it is functional. When complete, almost all parts of chat should have ThirdPlace objects associated with them, allowing others to create event-driven UserScripts without having to reverse-engineer chat. For example, running code when a user enters / leaves a room, when messages are posted / edited, when notifications happen, etc, will all be as simple as observing events on ThirdPlace. In addition, posting/editing messages, joining rooms, and more will all be able to be done through a simple set of objects. (See code sample)

###License

This is free software released under the MIT license.

###Download

Current version v0.5a available from my website.

Posting of messages and observing new message events both confirmed to work. Other events coming soon!

###Platform

Currently tested on Chrome. SHould work on Safari and Firefox as well.

##Contact

This library was created and is maintained by Joshua Gitlin a.k.a The Unhandled Exception. You can contact me via my website or via email at thirdplace -at- josh -dot- gitlin -dot- name

##Code

What language, frameworks, and tools were used to write this?
Where can we get the code?
How can we contribute to the code?

Josh
  • 563
  • 3
  • 12