Skip to content

Bump ws from 8.15.1 to 8.16.0 #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 1, 2024
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 28, 2024

Bumps ws from 8.15.1 to 8.16.0.

Release notes

Sourced from ws's releases.

8.16.0

Features

  • Added the autoPong option (01ba54ed).
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [ws](https://github.com/websockets/ws) from 8.15.1 to 8.16.0.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@8.15.1...8.16.0)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Feb 28, 2024
@dependabot dependabot bot requested review from a team and kimkim0814 and removed request for a team February 28, 2024 03:25
@kimkim0814
Copy link
Member

kimkim0814 commented Feb 28, 2024

wsとは?

Node.js WebSocket ライブラリのことである。
WebSocketは、リアルタイムの双方向通信を可能にするプロトコルで、wsライブラリはその実装を提供する。

Githubより引用
ws is a simple to use, blazing fast, and thoroughly tested WebSocket client and server implementation.
Passes the quite extensive Autobahn test suite: server, client.

ref:https://github.com/websockets/ws

Qiitaでの使用方法

import部分

import WebSocket, { WebSocketServer } from "ws";

使用部分

const wsServer = new WebSocketServer({ server });
const watcher = chokidar.watch(watchPath);
watcher.on("change", () => {
wsServer.clients.forEach((client) => {
if (client.readyState === WebSocket.OPEN) {
client.send("local changed");
}
});
});

@kimkim0814
Copy link
Member

📝

ローカルファイルを変更した際にWebsocketが使用される。
上記を行い、問題なく、動作することを確認した。

スクリーンショット 2024-02-29 17 51 25

Copy link
Member

@kimkim0814 kimkim0814 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@kimkim0814 kimkim0814 requested review from a team and ohakutsu and removed request for a team February 29, 2024 08:55
Copy link
Member

@ohakutsu ohakutsu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kimkim0814 LGTM!

@kimkim0814 kimkim0814 merged commit b9a9ca8 into main Mar 1, 2024
@kimkim0814 kimkim0814 deleted the dependabot/npm_and_yarn/ws-8.16.0 branch March 1, 2024 03:25
@ohakutsu ohakutsu mentioned this pull request Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants