Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/bupt1987/log-websocket

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/bupt1987/log-websocket

  • v0.0.0-20161227083434-7ed59e12fb6d
  • Source
  • Go
  • Socket score

Version published
Created
Source

log-websocket

监听本地socket ,把输入的文本信息push到连接到websocket的客户端
websocket 基于 github.com/gorilla/websocket

安装

go get -u github.com/bupt1987/log-websocket

使用须知

websocket 服务,端口: 9090, 访问需要带上参数listens, 例如: ws://127.0.0.1/?listens=test1,test2
listens 后面接的是监听的消息类型,可同时监听多种消息类型, 如果是 "*" 的话表示监听所有类型的消息

往本地 /tmp/log-stock.socket 写入数据时需要注意
本地写入数据格式: 消息类型 + "," + 消息内容 + "\n"

例子都在 tests 目录下

FAQs

Package last updated on 27 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc