Skip to content

Instantly share code, notes, and snippets.

@gdamjan
Last active November 15, 2016 11:53
Show Gist options
  • Save gdamjan/52269df3665524e2513a to your computer and use it in GitHub Desktop.
Save gdamjan/52269df3665524e2513a to your computer and use it in GitHub Desktop.
Gtalk ⇄ xmpp gateway - learning contest!

Gtalk ⇄ xmpp gateway

Do it in any language you want to learn. The prize is knowledge!

Some of the more interesting would be Erlang, Elixir, Lua, Rust, Go, Haskell, Ocaml, but also anything more exotic than theese (OTOH an PHP version would be really crazy exotic for this kind of an app).

Connects to gtalk as an xmpp or hangouts (protobufs) client. Connects to my prosody as an xmpp component and forwards messages to my one single account.

Messages to nickname@component go to gtalk Messages from gtalk go to my prosody account

Features in v1:

  • single user
  • fixed credentials

Features in v2:

  • authorization workflow
  • multiple users

Features in v3:

  • support group chats (muc)
  • send/receive multimedia

Maybe first I should write a non-scalable python proof-of-concept. Probably:

  • threads
  • sleekxmpp
  • protobufs (for hangouts) - not much examples of google hangouts with python, so maybe just use xmpp with sleekxmpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment