Your SlideShare is downloading. ×
0
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Sg conference pusher
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Sg conference pusher

288

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
288
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
7
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. ● ● ● ● ●
  • 2. ● El siguiente diagrama muestra el proceso de autenticación de pusher.
  • 3. Pusher tiene varios ejemplos en diferentes lenguajes, de cómo implementar un endpoint de autenticación para canales privados. Los lenguajes son : ● Rails ● Node.js ● Php/Drupal ● Php/Wordpress ● ASP.NET ● Python
  • 4. var express = require( 'express' ); var Pusher = require( 'pusher' ); var app = express( express.logger() ); app.use( express.bodyParser() ); var pusher = new Pusher( { appId: APP_ID, key: APP_KEY, secret: APP_SECRET } ); app.post( '/pusher/auth' , function( req, res ) { var socketId = req.body.socket_id; var channel = req.body.channel_name; var auth = pusher.auth( socketId, channel ); res.send( auth ); } ); var port = process.env.PORT || 5000; app.listen( port );
  • 5. ● ● ●
  • 6. Canales de presencia se basan en la seguridad de los canales privados, y tienen una gran funcionalidad que permiten saber que usuarios estan suscritos a un determinado canal de presencia.
  • 7. Los eventos son el principal método de empaquetado de los mensajes en el sistema de pusher. Ellos hacen parte de la comunicación y un evento puede ser visto como una notificación de alguna acción en tu sistema. Los eventos no pueden ser utilizados como filtros (Los canales hacen este trabajo más eficiente).
  • 8. ● ● ● ●
  • 9. ● ● http://www.genymotion.com/ ● https://github.com/ ● http://repo1.maven. org/maven2/com/pusher/pusher-java- client/

×