andreydrv / xmpp4r-simple Goto Github PK
View Code? Open in Web Editor NEWThis project forked from blaine/xmpp4r-simple
Jabber::Simple
License: GNU General Public License v2.0
This project forked from blaine/xmpp4r-simple
Jabber::Simple
License: GNU General Public License v2.0
= Name Jabber::Simple - An extremely easy-to-use Jabber client library. = Synopsis # Send a message to a friend, asking for authorization if necessary: im = Jabber::Simple.new("[email protected]", "password") im.deliver("[email protected]", "Hey there friend!") # Get received messages and print them out to the console: im.received_messages { |msg| puts msg.body if msg.type == :chat } # Send an authorization request to a user: im.add("[email protected]") # Get presence updates from your friends, and print them out to the console: # (admittedly, this one needs some work) im.presence_updates { |update| from = update[0].jid.strip.to_s status = update[2].status presence = update[2].show puts "#{from} went #{presence}: #{status}" end # Remove a user from your contact list: im.remove("[email protected]") # See the Jabber::Simple documentation for more information. = Description Jabber::Simple is intended to make Jabber client programming dead simple. XMPP, the Jabber protocol, is extremely powerful but also carries a steep learning curve. This library exposes only the most common tasks, and does so in a way that is familiar to users of traditional instant messenger clients. = Known Issues * None. If you'd like additional functionality, please contact the developer! = Copyright Jabber::Simple - An extremely easy-to-use Jabber client library. Copyright 2006-2008 Blaine Cook <[email protected]>. Jabber::Simple is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Jabber::Simple is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Jabber::Simple; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.