<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yamamucho</author_name>
  <author_url>https://blog.hatena.ne.jp/yamamucho/</author_url>
  <blog_title>酔いどれコード</blog_title>
  <blog_url>https://yamamucho.hatenadiary.org/</blog_url>
  <categories>
    <anon>Pusher</anon>
  </categories>
  <description>Pusher には誰がオンラインになっているかを管理してくれる機能がある。http://pusherapp.com/docs/presence。 この機能を知るまでは自前で管理しようとしていたが、面倒なのでこちらに切り替えた。詳しくは公式のドキュメントを参照。 ちょっとつまずいたのが2点。一つは Javascript 側で subscribe する際、チャンネル名を &quot;presence-&quot; で始めなければいけないこと。 もう一つは、サーバ側にリクエストが飛ぶので Pusher に対して認証してもらうこと。サーバ側のことに関しては、http://pusherapp.com/docs/privat…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyamamucho.hatenadiary.org%2Fentry%2F20101123%2F1290516148&quot; title=&quot;Pusher で現在オンラインのユーザを管理する（してくれる） - 酔いどれコード&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-11-23 21:42:28</published>
  <title>Pusher で現在オンラインのユーザを管理する（してくれる）</title>
  <type>rich</type>
  <url>https://yamamucho.hatenadiary.org/entry/20101123/1290516148</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
