Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 73件

新着順 人気順

socketの検索結果1 - 40 件 / 73件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

socketに関するエントリは73件あります。 javascriptPCセキュリティ などが関連タグです。 人気エントリには 『Socket Supply Co.』などがあります。
  • Socket Supply Co.

    npm npm i @socketsupply/socket -g curl . <(curl -s -o- https://socketsupply.co/sh) iwr iwr -useb https://socketsupply.co/ps | iex Write Once, Run Anywhere Ship apps faster than anyone else using one skill set, and one codebase. You can even turn your existing web app into a native Socket app. Connect Everyone Our modern P2P protocol makes it possible for users anywhere in the world to communicate

      Socket Supply Co.
    • PerlからGoへのシステム移行のアシスト 〜Perl XSとUnix Domain Socketを活用〜 - Mirrativ Tech Blog

      こんにちは ハタ です。 Mirrativ では 2020年頃から サーバサイドの技術をPerlからGoへのシステム移行 を行っており、2024年現在でもサグラダファミリアのように移行作業は継続しています PerlとGoという2つの環境を同時に運用していますが、 基本的には 新機能は Go で実装 し、 Perlでは積極的に新規実装を行わない というスタイルで進めていました しかし、既存の機能の一部に手を加えたいとなった場合、まだまだ Perl の実装に手を加えることが一定あり、Perl から Go の機能を呼び出したいというニーズが出てきました (配信やギフトといったビジネスの根幹を支えるレガシーな実装においては顕著) そこで PerlXS を利用することで Perl から Go を直接呼び出せるようにできないかと考え検証を進めることにしました Goの -buildmode=c-shar

        PerlからGoへのシステム移行のアシスト 〜Perl XSとUnix Domain Socketを活用〜 - Mirrativ Tech Blog
      • AMD、Socket AM5と5nmに進化した「Zen 4」こと「Ryzen 7000」

          AMD、Socket AM5と5nmに進化した「Zen 4」こと「Ryzen 7000」
        • Socket migration for SO_REUSEPORT (Part 1) - Kuniyuki Iwashima

          TCP ソケットと `SO_REUSEPORT` オプションに関する問題を解決するために Linux カーネル v5.14 から取り込まれる予定のパッチセットについて 2 回に分けて解説します。 - https://lore.kernel.org/bpf/20210612123224.12525-1-kuniyu@amazon.co.jp/ - https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git/commit/?id=1f26622b791b6a1b346d1dfd9d04450e20af0f41 Part 1 では `SO_REUSEPORT` オプション、カーネルの挙動と問題点、パッチセットの効果について解説し、 Part 2 ではカーネルの実装と修正方法、追加した eBPF の機能について解説します。 ##

            Socket migration for SO_REUSEPORT (Part 1) - Kuniyuki Iwashima
          • 今買うならSocket AM4とAM5のどっち? 圧倒的コスパのAM4が低価格ゲーミングPC自作の最適解 (1/5)

            パフォーマンスを向上させつつ、発熱と消費電力を抑えた魅力的なCPUとなっているAMD次世代CPUのRyzen 9000シリーズ。この秋には、Socket AM5 CPU向けチップセットの第2世代となるAMD 800シリーズチップセットを採用するマザーボードの発売が予定されているため、ゲーミング、クリエイティブ問わず、新たなPCを組もうと考えている人におすすめのCPUと言える。 そんなAMD Ryzenを使ったPC自作には、現行世代と前世代の2つの選択肢がある。現行世代は、Ryzen 7000/8000G/9000シリーズCPUと、対応するCPUソケットのSocket AM5を採用するマザーボード、DDR5メモリーを組み合わせ、総じて高めの予算が必要になっている。 そしてもうひとつが、前世代となるRyzen 5000 CPUと、Socket AM4採用マザーボードで組むSocket AM4自

              今買うならSocket AM4とAM5のどっち? 圧倒的コスパのAM4が低価格ゲーミングPC自作の最適解 (1/5)
            • UNIX Domain Socket の SO_SNDBUF, SO_RCVBUF についての覚書 - hibomaの日記

              macOS と Linux の UNIX Domain Socket の SO_SNDBUF, SO_RCVBUF について調べていた。 経緯 会社で @kurotaky のトラブルシューティングの相談を受けた際の覚書。 下記のように UNIX Domain Socket を挟んで IPC しているコードがあり、macOS と Linux で挙動が違っているのを調べていた。Linux では Go Ethereum が送ってくるデータを全部読み出せるが、macOS だと一部 ( 8192 バイト 注1 ) しか読み出せないとのことだった。 Ruby のコード <----- UNIX Domain Socket -----> Go Ethereum 色々調べてみたところ、macOS / Linux で UNIX Domain Socket のデフォルトの SO_SNDBUF, SO_RCVBU

                UNIX Domain Socket の SO_SNDBUF, SO_RCVBUF についての覚書 - hibomaの日記
              • Node.js Takes Steps Towards Removing Corepack - Socket

                Node.js is taking steps towards removing Corepack from its distribution, aiming for changes in the next major release. Following a discussion in OpenJS Slack, Node.js PMWG (Package Maintenance Working Group) members have formalized a plan for eventually removing Corepack. In February, the Node.js community engaged in a heated debate over a proposal to enable Corepack by default that was opened in

                  Node.js Takes Steps Towards Removing Corepack - Socket
                • GitHub - flawiddsouza/Restfox: Offline-First Minimalistic HTTP & Socket Testing Client for the Web & Desktop

                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                    GitHub - flawiddsouza/Restfox: Offline-First Minimalistic HTTP & Socket Testing Client for the Web & Desktop
                  • Socket - Secure your dependencies. Ship with confidence.

                    Secure your dependencies. Ship with confidence.Socket is a developer-first security platform that protects your code from both vulnerable and malicious dependencies.

                      Socket - Secure your dependencies. Ship with confidence.
                    • Socket AM4はまだ終わらない。AMD、「Ryzen 7 5700X3D」など4製品追加

                        Socket AM4はまだ終わらない。AMD、「Ryzen 7 5700X3D」など4製品追加
                      • 1749908 - Infinite loop in HTTP3 hangs socket thread

                        For bugs in Mozilla's modular networking library (aka "Netlib" or "Necko".) The networking library supplies the software interface that Mozilla uses to access physical transports (e.g. the Internet and local drives), perform URL resolutions, and handle a variety of networking protocols. Examples of appropriate bugs: URLs with backslash not fetched; URLs starting with a single slash turn into http:

                        • neue cc - AlterNats - ハイパフォーマンスな.NET PubSubクライアントと、その実装に見る.NET 6時代のSocketプログラミング最適化のTips、或いはMagicOnionを絡めたメタバース構築のアーキテクチャについて

                          タイトルはここぞとばかりに全盛りにしてみました!今回NATSの.NETクライアント実装としてAlterNatsというライブラリを新しく作成し、公開しました。 github - Cysharp/AlterNats 公式の既存クライアントの3倍以上、StackExchange.RedisのPubSubと比較して5倍以上高速であり、通常のPubSubメソッドは全てゼロアロケーションです。 そもそもNATSとはなんぞやか、というと、クラウドネイティブなPubSubのミドルウェアです。Cloud Native Computing Foundationのincubating projectなので、それなりの知名度と実績はあります。 PubSubというと、特にC#だとRedisのPubSub機能で行うのが、StackExchange.Redisという実績あるライブラリもあるし、AWSやAzure、GCP

                          • Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack - Socket

                            Security News Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China. More than 110K websites using the Polyfill.io service have been impacted by a supply chain attack after a Chinese company bought the service earlier this year. The C

                              Namecheap Takes Down Polyfill.io Service Following Supply Chain Attack - Socket
                            • Introduction of Happy Eyeballs Version 2 (RFC8305) to the Socket library

                              Ruby Association Activity Report 「socketライブラリへのHappy Eyeballs Version 2 (RFC8305)の導入」報告資料 参考資料:HEv2の状態を洗い出すために作成した疑似コード https://gist.github.com/shi…

                                Introduction of Happy Eyeballs Version 2 (RFC8305) to the Socket library
                              • JEP 380: Unix-Domain Socket Channels

                                Summary Add Unix-domain (AF_UNIX) socket support to the socket channel and server-socket channel APIs in the java.nio.channels package. Extend the inherited channel mechanism to support Unix-domain socket channels and server socket channels. Goals Unix-domain sockets are used for inter-process communication (IPC) on the same host. They are similar to TCP/IP sockets in most respects, except that th

                                • Express.js Spam PRs Incident Highlights the Commoditization of Open Source Contributions - Socket

                                  Security News Express.js Spam PRs Incident Highlights the Commoditization of Open Source Contributions A mountain of spam PRs landed in the Express.js project repo after a popular YouTube tutorial used it as an example for contributing to open source. This put a spotlight on the mandate for job seekers to find a way to contribute to OSS. A tidal wave of spam pull requests recently hit the popular

                                    Express.js Spam PRs Incident Highlights the Commoditization of Open Source Contributions - Socket
                                  • Introducing "safe npm", a Socket npm Wrapper - Socket

                                    Product Introducing "safe npm", a Socket npm Wrapper Socket is proud to introduce an exciting new tool—“safe npm”—that protects developers whenever they use npm install. Socket is proud to introduce an exciting new tool—“safe npm”—that protects developers whenever they use npm install. Socket’s “safe npm” CLI tool transparently wraps the npm command and protects developers from malware, typosquats

                                      Introducing "safe npm", a Socket npm Wrapper - Socket
                                    • AMD、次世代CPU Ryzen 7000シリーズに対応する最新Socket AM5マザーボードを披露 - エルミタージュ秋葉原

                                      AMD、次世代CPU Ryzen 7000シリーズに対応する最新Socket AM5マザーボードを披露 2022.08.05 03:18 更新 2022.08.04 配信 AMD(本社:アメリカ)は2022年8月4日(現地時間)、オンラインイベント「Meet the Experts」を開催。主要マザーボードメーカーの担当者を集め、次世代CPU Ryzen 7000シリーズに対応するSocket AM5マザーボードを披露した。そこで今回は新製品を中心に紹介をしていこう。 ASUSからは新モデル「ROG Crosshair X670E Hero」登場 ASUSでは、COMPUTEX TAIPEI 2022に合わせて「ROG Crosshair X670E Extreme」が発表されているが、新たなAMD X670Eマザーボードとして「ROG Crosshair X670E Hero」が公開され

                                        AMD、次世代CPU Ryzen 7000シリーズに対応する最新Socket AM5マザーボードを披露 - エルミタージュ秋葉原
                                      • dockerコマンド実行時の「Got permission denied while trying to connect to the Docker daemon socket」 - Libra Studio Log

                                        こんばんは、daihaseです。 今日はdockerついて。 Ubuntu(18.04)環境にdockerをインストールし、早速dockerコマンドを叩いたらタイトルのようなメッセージが出て叩けませんでした。 dockerコマンドはデフォルトではroot権限なしには叩けないようになっています。 そこでdockerグループにユーザーを追加し、sudoなしでも叩けるようにしましょう。 まず以下を実行し、現在ログインしているユーザーをdockerグループへ追加。 $ sudo gpasswd -a $(whoami) docker 次にdocker.sock にグループでの書き込み権限を付与。 $ sudo chgrp docker /var/run/docker.sock 最後にdocker daemonを再起動します。 $ sudo service docker restart これで適当に

                                          dockerコマンド実行時の「Got permission denied while trying to connect to the Docker daemon socket」 - Libra Studio Log
                                        • GitHub - stealthrocket/net: Go package implementing WASI socket extensions

                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                            GitHub - stealthrocket/net: Go package implementing WASI socket extensions
                                          • API Gateway + Web Socket で Auth0 の認証をするカスタムオーソライザーをつくってみた | DevelopersIO

                                            API Gateway + WebSocket で Auth0 を使った認証を行うカスタムオーソライザーを作成してみました。今回は Auth0 の Vue.js のサンプルを参考に実装をおこなっていきます。全体のソースコードはgithubにPushしています 西田@大阪です。 API Gateway + WebSocket で Auth0 を使った認証を行うカスタムオーソライザーを作成してみました。今回は Auth0 の Vue.js のサンプルを参考に実装をおこなっていきます。全体のソースコードは github に Pushしています サーバー側を作成 Serverless Framework(以下 sls) のプロジェクトを作成し必要なライブラリをインストールします $ sls create --template aws-python3 --name wsauth0 --path ws

                                              API Gateway + Web Socket で Auth0 の認証をするカスタムオーソライザーをつくってみた | DevelopersIO
                                            • RubyでSlackのbotをつくる2021:Socket Mode編 - Qiita

                                              パット見て何が起きるのかわかりやすくていいですね。 そんなわけで、本来は Bolt を選択すれば何の問題もないのですが、僕自身は Ruby が好きなので可能であれば Ruby で Slack bot を作りたいな……という気持ちがあります。1 Rubyの場合は? Ruby で bot を作るとすると、このあたりとかでしょうか? slack-ruby-bot / slack-ruby-bot-server Ruboty+ruboty-slack-rtm Mobb などなど。公式ページにもいろいろツールやライブラリがまとめられています 。 slack-ruby-bot は名前のとおり Slack 専用のライブラリで、 Ruboty と Mobb はどちらも汎用 bot フレームワークで Slack に対応したアダプターが存在するタイプのものです。 かつての Slack は「ちょっとすごい IR

                                                RubyでSlackのbotをつくる2021:Socket Mode編 - Qiita
                                              • AMDの新Socket AM5マザーボードで新しいOCメモリ「EXPO」に対応

                                                  AMDの新Socket AM5マザーボードで新しいOCメモリ「EXPO」に対応
                                                • Socket AM4 Ryzenの最終アップグレード!?Ryzen 7 1800XからRyzen 9 5950Xへの載せ換えを今こそ改めて検証してみる Ryzen 1000シリーズから5000シリーズへの進化の過程で性能は約2倍に text by 瀬文茶

                                                    Socket AM4 Ryzenの最終アップグレード!?Ryzen 7 1800XからRyzen 9 5950Xへの載せ換えを今こそ改めて検証してみる Ryzen 1000シリーズから5000シリーズへの進化の過程で性能は約2倍に text by 瀬文茶
                                                  • DockerがErrorで起動しない(Ports are not available: listen ~An attempt was made to access a socket in a way forbidden by its access permissions.) - Qiita

                                                    DockerがErrorで起動しない(Ports are not available: listen ~An attempt was made to access a socket in a way forbidden by its access permissions.)WindowsDockerdocker-compose 症状 以前から、Dockerを使用していました。 久しぶりに使ったら、 "Error response from daemon: Ports are not available: listen tcp 0.0.0.0:3306: bind: An attempt was made to access a socket in a way forbidden by its access permissions." エラーで使用できません。 環境は、windows(WSL

                                                      DockerがErrorで起動しない(Ports are not available: listen ~An attempt was made to access a socket in a way forbidden by its access permissions.) - Qiita
                                                    • Socket.IO 3 Release | Socket.IO

                                                      We are happy to announce the release of Socket.IO v3! Migration guide​This release contains a few non backward compatible changes. We have published a dedicated migration guide with all necessary details. Why Socket.IO in 2020?​That's an excellent question actually. Depending on your use case, it might make sense to use plain WebSocket directly: client: MDN, Can I use?server: ws or eiows in the No

                                                        Socket.IO 3 Release | Socket.IO
                                                      • Production ready eBPF, or how we fixed the BSD socket API

                                                        Production ready eBPF, or how we fixed the BSD socket API2022-02-17 As we develop new products, we often push our operating system - Linux - beyond what is commonly possible. A common theme has been relying on eBPF to build technology that would otherwise have required modifying the kernel. For example, we’ve built DDoS mitigation and a load balancer and use it to monitor our fleet of servers. Thi

                                                          Production ready eBPF, or how we fixed the BSD socket API
                                                        • 【今月の自作PCレシピ】Socket AM4で組む予算を抑えたゲーミングPC (1/3)

                                                          動画や音楽の視聴、ゲーミングといった用途やコスト、筐体サイズを重視するなど、自分好みに組み立てられるPC自作。ただ、その自由度の高さに比例して、パーツ選定にはある程度の知識や時間が必要になる。 そんなパーツ選定に悩まずに済むよう、秋葉原の主要パーツショップ店員に聞いたオススメパーツ構成を紹介。コスト重視の激安から、最新ゲームをヌルヌル表示でプレイできるゲーミング構成まで、さまざまなPC構成を毎月お届けしよう。 秋葉原や通販で、“○○○を快適に楽しめるPC自作パーツをサクッと買いたい!!”、“どんな構成が良いのか見当がつかない”といった人は注目してもらいたい。 まだまだ現役! 予算15万円で組む2024年夏のSocket AM4ゲーミングPC自作 「COMPUTEX TAIPEI 2024」で発表・展示された製品が目白押しになっている7月。最新スペックで組むなら、この夏の最新パーツ登場を待つ

                                                            【今月の自作PCレシピ】Socket AM4で組む予算を抑えたゲーミングPC (1/3)
                                                          • docker で nginx & php-fpm の PHP 実行環境を構築する(TCP/UNIX domain socket)

                                                            HomeDockerdocker で nginx & php-fpm の PHP 実行環境を構築する(TCP/UNIX domain socket)

                                                              docker で nginx & php-fpm の PHP 実行環境を構築する(TCP/UNIX domain socket)
                                                            • /proc/PID/fd の socket の接続先を調べる方法

                                                              Linux で何か調査をしていて、lsof が使えない場合に /proc/{PID}/fd 配下でそのプロセスが開いているファイルやソケットを確認したりしますが、ソケットの場合、通信相手が分かりませんでした。私は。でも知ってしまったのですその方法を。(数ヶ月前に) ということで次回以降のためにメモです。 # ls -l /proc/5322/fd total 0 lr-x------. 1 root root 64 Oct 17 15:23 0 -> /dev/null lrwx------. 1 root root 64 Oct 17 15:23 1 -> /dev/null lrwx------. 1 root root 64 Oct 17 15:23 2 -> /dev/null lrwx------. 1 root root 64 Oct 17 15:23 3 -> socket:

                                                                /proc/PID/fd の socket の接続先を調べる方法
                                                              • 【Security Hub修復手順】[S3.5] S3 バケットでは、Secure Socket Layer を使用するためのリクエストの要求が必要です。 | DevelopersIO

                                                                こんにちは、AWS事業本部の平井です。 皆さん、お使いのAWS環境のセキュリティチェックはしていますか? 当エントリでは、AWS Security HubによるAWS環境のセキュリティ状況スコアリングに該当する項目についての修正手順をご紹介します。 本記事の対象コントロール [S3.5] S3 バケットでは、Secure Socket Layer を使用するためのリクエストの要求が必要です。 [S3.5] S3 buckets should require requests to use Secure Socket Layer 前提条件 本記事はAWS Security Hubで「AWS基礎セキュリティのベストプラクティススタンダード」を利用されている方向けの内容です。 AWS Security Hubの詳細についてはこちらのブログをご覧ください。 対象コントロールの説明 対象コントロール

                                                                  【Security Hub修復手順】[S3.5] S3 バケットでは、Secure Socket Layer を使用するためのリクエストの要求が必要です。 | DevelopersIO
                                                                • リアルタイムWebアプリケーション用JavaScriptライブラリ「Socket.IO 3」がリリース

                                                                  CodeZine編集部では、現場で活躍するデベロッパーをスターにするためのカンファレンス「Developers Summit」や、エンジニアの生きざまをブーストするためのイベント「Developers Boost」など、さまざまなカンファレンスを企画・運営しています。

                                                                    リアルタイムWebアプリケーション用JavaScriptライブラリ「Socket.IO 3」がリリース
                                                                  • Node.js Community Debate Intensifies Over Enabling Corepack by Default and Potentially Unbundling npm - Socket

                                                                    Security News Node.js Community Debate Intensifies Over Enabling Corepack by Default and Potentially Unbundling npm The Node community is wrestling with the decision to enable Corepack by default, which has sparked a debate about the potential of removing npm from the Node.js binary. A heated debate is happening in the Node.js community over a proposal to enable Corepack by default that was opened

                                                                      Node.js Community Debate Intensifies Over Enabling Corepack by Default and Potentially Unbundling npm - Socket
                                                                    • ビデオチャットアプリを作る ( WebRTC + Node.js + Socket.io )

                                                                      ビデオチャットアプリを作る ( WebRTC + Node.js + Socket.IO ) WebRTC と Node.js と Socket.IO を用いて、ビデオチャットアプリを作成する方法を解説します。 WebRTCは、JavaScript APIの一つで、リアルタイムP2P通信を提供します。WebRTCを利用すると、ウェブブラウザをクライアントとして、2つのクライアント間で、映像や音声や独自データをリアルタイムに送受信するウェブアプリケーションを作成することができます。 RTCは、 Real-Time Communicationの略です。 使用開発環境は、以下です。 Node.js : version 10.16.3 Express : version 4.17.1 Socket.IO : version 2.3.0

                                                                      • CDK + API Gateway + Web Socket を使ってみた | DevelopersIO

                                                                        API GatewayでWeb Socket APIを作ってみたのでご紹介します。 作りたいものとしては、S3に画像をアップロードする機能があり、その際に管理画面などに画像がアップロードされたのを通知で表示したいというものです。 簡単な構成としては以下のような感じです。 今回紹介するソースコードは、Typescriptで記述しています。 作ったサンプルは以下のGitHubで公開しています。 WebSocket AWS環境を構築 CDKでAWS環境を構築します。 S3を作成 画像のアップロード先のS3を作成します。 const webSocketBucket = new s3.Bucket(this, 'webSocketBucket') DynamoDBのテーブルを作成 クライアント接続時のコネクションIDを保持するDynamoDBのテーブルを作成します。 画像がアップロードされた場合の通

                                                                          CDK + API Gateway + Web Socket を使ってみた | DevelopersIO
                                                                        • TypeScriptを使った、Next.js + ExpressカスタムサーバーでSocket.ioのチャットアプリをDockerで実装 - Qiita

                                                                          TypeScriptを使った、Next.js + ExpressカスタムサーバーでSocket.ioのチャットアプリをDockerで実装Socket.ioExpressTypeScriptDockerNext.js 目的 Next.jsに本来、含まれていないWebSocket機能をCustom ServerのSocket.ioで実装した上で、Dockerのコンテナで実行する。 目次 Next.jsでチャットアプリの作成 Custom ServerをTypeScriptで立ち上げる Production用にBuildできるように設定する Dockerの設定を行う DockerコンテナをBuildして終わり! チャットアプリの作成 以下のCommandを実行してNextのTypeScriptプロジェクトを作ります。 https://nextjs.org/docs/api-reference/c

                                                                            TypeScriptを使った、Next.js + ExpressカスタムサーバーでSocket.ioのチャットアプリをDockerで実装 - Qiita
                                                                          • Got permission denied while trying to connect to the Docker daemon socket at 解決方法 - Qiita

                                                                            Got permission denied while trying to connect to the Docker daemon socket at 解決方法UbuntuDocker Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": dial unix /var/run/docker.sock: connect: permission denied 以下のコマンドを実行する。 sudo chmod 666 /var/run/docker.sock 解決できたかどうかの確認で何らかの docker コマン

                                                                              Got permission denied while trying to connect to the Docker daemon socket at 解決方法 - Qiita
                                                                            • When "Everything" Becomes Too Much: The npm Package Chaos of 2024 - Socket

                                                                              Application Security When "Everything" Becomes Too Much: The npm Package Chaos of 2024 An NPM user named PatrickJS launched a troll campaign with a package called "everything," which depends on all public npm packages. Happy 2024, folks! Just when we thought we'd seen it all, an npm user named PatrickJS, aka gdi2290, threw us a curveball. He (along with a group of contributors) kicked off the year

                                                                                When "Everything" Becomes Too Much: The npm Package Chaos of 2024 - Socket
                                                                              • はじめてのSocket.io #1 「リアルタイムなチャットを作る」 - ねこの足跡R

                                                                                Node.jsのキラーソフトの一つとも言われて久しいSocket.ioを使ってリアルタイム通信を行います。コツさえ分かれば非常に簡単に開発できてしまうのでプロトタイプや小規模なプロジェクトにオススメ。 今回は以下の動画のように複数のクライアント間でリアルタイムに通信が行える簡易チャットをHTML+JavaScriptで作成してみます。 www.youtube.com 基本的な解説 Socket.ioは何をやってるの? 制約や注意点 P2Pじゃダメなの? 環境構築 インストール サンプルコード serve.js index.html 実行する サーバを起動 ブラウザから確認 サーバを終了 解説 大まかな原理 クライアント ライブラリを取得 サーバへ接続 Socket.ioサーバへ送信 Socket.ioサーバから受信 サーバ クライアントの接続 - connection クライアントへ一斉送

                                                                                  はじめてのSocket.io #1 「リアルタイムなチャットを作る」 - ねこの足跡R
                                                                                • 2020-11-10のJS: Socket.IO 3.0.0、core-js 3.7.0、SvelteKit

                                                                                  JSer.info #513 - Socket.IO 3.0.0がリリースされています。 Release 3.0.0 · socketio/socket.io-client Socket.IO 3 Release | Socket.IOのリリース記事では、 現在ではWebSocketsのfallbackとしてのSocket.IOの機能はそこまで重要ではありませんが、auto-reconnectionような機能などには引き続き価値があるという話が書かれています。 2.xから3.0.0への変更点やマイグレーションについては次のページにまとめられています。 Migrating from 2.x to 3.0 | Socket.IO Engine.IO 4へのアップデートも含まれています。 破壊的な変更として、maxHttpBufferSizeが100MBから1MBに変更、CORSの設定方法の変更

                                                                                    2020-11-10のJS: Socket.IO 3.0.0、core-js 3.7.0、SvelteKit

                                                                                  新着記事