<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yoppy0066</author_name>
  <author_url>https://blog.hatena.ne.jp/yoppy0066/</author_url>
  <blog_title>とりあえずphpとか</blog_title>
  <blog_url>https://kimagureneet.hatenablog.com/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>swift</anon>
  </categories>
  <description>iOSでWebSocketを少し試す必要があったのでそのときの手順をまとめておく。サーバー側はRails5.2のAPIモードでActionCableを使う。railsインストール $ bundle exec rails new ac_test --api Channel作成 channel作成 $ ./bin/rails g chnnel chatChannelはコントローラのWebSocket版と考える。そのままだけど、subscribeはクライアントからsubscribeのメッセージを受け取ったら呼ばれる。app/channels/chat_channel.rb class ChatCha…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkimagureneet.hatenablog.com%2Fentry%2F2019%2F01%2F08%2F200240&quot; title=&quot;rails actioncable + swiftでwebsocketのhello world - とりあえずphpとか&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yoppy0066/20190108/20190108195942.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-08 20:02:40</published>
  <title>rails actioncable + swiftでwebsocketのhello world</title>
  <type>rich</type>
  <url>https://kimagureneet.hatenablog.com/entry/2019/01/08/200240</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
