Skip to content

Instantly share code, notes, and snippets.

View whoahbot's full-sized avatar

Dan Herrera whoahbot

  • Portland, Oregon
View GitHub Profile
var packet = new JSJaCPresence();
packet.setTo("#wewo@conference.example.com/whoahbot");
packet.appendNode('x', {xmlns: "http://jabber.org/protocol/muc"});
$(function() {
$('.login_button').click(function() {
doLogin();
});
$('#send_chat_form').submit(function() {
var message = $(this).find('.message').val();
sendMsg(message);
$('#chat').append('<div class="msg">me: ' + message + '</div>');
$(this).find(".message").val('');
<VirtualHost *>
Servername whoahbot.example.com
DocumentRoot /var/www
RewriteEngine On
RewriteRule ^/http-bind/ http://jabber.example.com:5280/http-bind/ [P]
</VirtualHost>
{5280, ejabberd_http, [
http_bind,
http_poll,
web_admin
]}
=INFO REPORT==== 2009-03-31 03:00:52 ===
I(<0.253.0>:ejabberd_listener:116) : (#Port<0.5709>) Accepted connection {{67,189,35,116},45469} -> {{174,143,25,47},5280}
=INFO REPORT==== 2009-03-31 03:00:52 ===
D(<0.246.0>:ejabberd_http:121) : S: [{["admin"],ejabberd_web_admin},
{["http-bind"],mod_http_bind},
{["http-poll"],ejabberd_http_poll}]
=INFO REPORT==== 2009-03-31 03:00:52 ===
//
// TrollopsViewController.m
// Trollops
//
// Created by dph on 3/16/09.
// Copyright __MyCompanyName__ 2009. All rights reserved.
//
#import "TrollopsViewController.h"
#import "TrollopView.h"