<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>isobe_yaki</author_name>
  <author_url>https://blog.hatena.ne.jp/isobe_yaki/</author_url>
  <blog_title>isobe_yakiのブログ</blog_title>
  <blog_url>https://isobe-yaki.hateblo.jp/</blog_url>
  <categories>
    <anon>ニコ生ゲーム開発</anon>
  </categories>
  <description>マルチゲームで画像データなどをやり取りするためにg.game.raiseEvent()でバイナリデータを送りたいことがある。それ自体は何も難しくなく、送信データに[42, 16, 120, ...]のようなArrayオブジェクトやUint8Arrayオブジェクトを含めればいいだけである。しかしこの方法だとニコ生ゲームの仕様上かなりのオーバーヘッドが発生してしまうのだ。今回はその原因と対策（？）を紹介する。 ニコ生ゲームの通信仕様 postMessage MessagePack バイナリ通信の問題点 生バイナリの通信はそもそも可能か？ 他のオブジェクトだとどうなるか？ 文字列はどうか？ 最後に …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fisobe-yaki.hateblo.jp%2Fentry%2F2023%2F09%2F11%2F232909&quot; title=&quot;【小ネタ】ニコ生ゲームでバイナリ通信 - isobe_yakiのブログ&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/i/isobe_yaki/20230907/20230907002031.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-09-11 23:29:09</published>
  <title>【小ネタ】ニコ生ゲームでバイナリ通信</title>
  <type>rich</type>
  <url>https://isobe-yaki.hateblo.jp/entry/2023/09/11/232909</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
