https://github.com/daysnap/toothpick
基于 websocket 长连接 debug 功能
https://github.com/daysnap/toothpick
debug h5 pc websocket
Last synced: 10 months ago
JSON representation
基于 websocket 长连接 debug 功能
- Host: GitHub
- URL: https://github.com/daysnap/toothpick
- Owner: daysnap
- Created: 2022-06-13T08:54:52.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-06T03:19:14.000Z (about 3 years ago)
- Last Synced: 2025-08-08T15:24:34.890Z (11 months ago)
- Topics: debug, h5, pc, websocket
- Language: TypeScript
- Homepage: http://demo.daysnap.cn/toothpick/
- Size: 1.36 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# toothpick
## pnpm 管理
```bash
# 给项目安装依赖
pnpm install lint-staged -w -D
# 给子项目安装依赖
pnpm install typescript --filter @daysnap/toothpick-sdk
# 给所有项目安装依赖
pnpm install socket.io -r
# 子项目依赖
pnpm install @daysnap/toothpick-sdk --filter @daysnap/toothpick-playground -S
```
```bash
nginx -t -c /etc/nginx/nginx.conf
netstat -nap | grep 80
kill -9
pm2 start npm --watch --name -- run start
yum -y install nodejs
yum remove nodejs npm -y
curl --silent --location https://rpm.nodesource.com/setup_16.13.0 | sudo bash -
pm2 log [project]
```
```js
// https://juejin.cn/post/7005849295693807624
// https://babeljs.io/docs/en/configuration
```
```bash
# https://www.hhyit.com/archives/4226
# centos8 在 CentOS 8 中安装软件出现 “错误:为仓库 ‘appstream’ 下载元数据失败” 的解决办法
sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-*
sed -i -e "s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g" /etc/yum.repos.d/CentOS-*
```