<?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を使って、複数クライアントと同時に接続できるようにしました。今回は、複数のgoroutine間をchannelをつないでメッセージやりとりし、Publishされたメッセージを別のSubscribeしているクライアントに配送します。channelの所有権やselectを組み合わせてchannelをより便利に使えるようにします。 目次。 サーバーからクライアントへのPUBLISH channel channelは値 select sync.WaitGroup おしまい サーバーからクライアントへのPUBLISH MQTTのPUBLISHの仕様を読み直す。 http://do…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.bati11.info%2Fentry%2F2019%2F05%2F03%2F143055&quot; title=&quot;MQTTサーバーを実装しながらGoを学ぶ - その９ channelとselect - 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>https://cloud.google.com/pubsub/images/many-to-many.svg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-05-03 14:30:55</published>
  <title>MQTTサーバーを実装しながらGoを学ぶ - その９ channelとselect</title>
  <type>rich</type>
  <url>https://blog.bati11.info/entry/2019/05/03/143055</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
