<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bati11</author_name>
  <author_url>https://blog.hatena.ne.jp/bati11/</author_url>
  <blog_title>bati11 の 日記</blog_title>
  <blog_url>https://blog.bati11.info/</blog_url>
  <categories>
    <anon>Go</anon>
    <anon>MQTT</anon>
  </categories>
  <description>前回、goroutine, channel, selectを使って Broker を実装しました。この Broker をサーバーで利用し、MQTTでメッセージを配送してみます。 その前に &lt;-chan chan&lt;- []byte という型が読みづらいので type を使って対応します。その後、読み書き可能なchannelを、 chan&lt;- , &lt;-chan という型に変換しgoroutineへ渡しメッセージの配送を実現します。 目次 typeで型をつくる サーバーに組み込む []byteからPublishへ変更 server.go PUBLISHのハンドリング SUBSCRIBEのハンドリング…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.bati11.info%2Fentry%2F2019%2F05%2F04%2F172551&quot; title=&quot;MQTTサーバーを実装しながらGoを学ぶ - その１０ type, &amp;quot;chan&amp;lt;-&amp;quot;と&amp;quot;&amp;lt;-chan&amp;quot; - bati11 の 日記&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>2019-05-04 17:25:51</published>
  <title>MQTTサーバーを実装しながらGoを学ぶ - その１０ type, &quot;chan&lt;-&quot;と&quot;&lt;-chan&quot;</title>
  <type>rich</type>
  <url>https://blog.bati11.info/entry/2019/05/04/172551</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
