このページは、2020 年にサポートが終了した Chrome アプリ プラットフォームに関するドキュメントの一部です。Enterprise および Education のお客様については、少なくとも 2025 年 1 月までは ChromeOS で引き続きサポートされます。詳しくは、
アプリの移行 をご覧ください。
ソケット
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
重要: Chrome では、すべてのプラットフォームで Chrome アプリのサポートを終了します。Chrome ブラウザと
Chrome ウェブストアで拡張機能のサポートは継続されます。詳しくは、お知らせ をご覧ください。
詳しくは、アプリの移行 をご覧ください。
sockets
マニフェスト プロパティは、sockets.udp で使用できる権限を宣言します。
sockets.tcp API と sockets.tcpServer API。
manifest.json の例
{
"na me ": "My Socke ts app ",
"socke ts ": {
"udp ": {
// Permission for chrome.sockets.udp.send:
// The application is allowed to send udp packets
// to any host:port combination.
"se n d ": "* "
},
"t cp ": {
// Permission for chrome.sockets.tcp.connect:
// The application is allowed to connect only to the
// tcp server on 127.0.0.1 port 80.
"co nne c t ": "127.0.0.1 : 80 "
},
"t cpServer ": {
// Permission for chrome.sockets.tcpServer.listen:
// The application is allowed to accept new client
// connections on the local address at port 80.
"lis ten ": "127.0.0.1 : 80 "
}
},
...
}
リファレンス
udp
(オブジェクト) - 省略可
udp
マニフェスト プロパティは、アプリが発行できる sockets.udp 操作を宣言します。
タイプ 属性 説明 文字列または文字列の配列 (省略可) バインド
bind
オペレーションの host:port のパターン。
文字列または文字列の配列 (省略可) 送信
send
オペレーションの host:port のパターン。
文字列または文字列の配列 (省略可) multicastMembership
joinGroup
オペレーションの host:port のパターン。
tcp
(オブジェクト) - 省略可
tcp
マニフェスト プロパティは、アプリが発行できる sockets.tcp オペレーションを宣言します。
タイプ 属性 説明 文字列または文字列の配列 (省略可) 接続
connect
オペレーションの host:port のパターン。
tcpServer
(オブジェクト) - 省略可
tcpServer
マニフェスト プロパティは、アプリが発行できる sockets.tcpServer オペレーションを宣言します。
タイプ 属性 説明 文字列または文字列の配列 (任意) 聴取
listen
オペレーションの host:port のパターン。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンス により使用許諾されます。コードサンプルは Apache 2.0 ライセンス により使用許諾されます。詳しくは、Google Developers サイトのポリシー をご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2014-01-08 UTC。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]
{"lastModified": "\u6700\u7d42\u66f4\u65b0\u65e5 2014-01-08 UTC\u3002"}
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2014-01-08 UTC。"],[],[]]