lqhuang / watcher

Simple PubSub server based on REST API and Websocket protocol

Repository from Github https://github.comlqhuang/watcherRepository from Github https://github.comlqhuang/watcher

Watcher

Receive event signals and broadcast to connected downstream by dame simple HTTP2/3 server stream or websocket protocol.

Warning: 🚧 WIP & Prototyping

Dev Guide

sbt compile
sbt test
sbt run

Using sbt as Metals build server

While Metals uses sbt as the build server, we can also log into the same sbt session using a thin client. From Terminal section, type in

sbt --client

This lets you log into the sbt session Metals has started.

Build

By default, all files found in the src/universal directory are included in the distribution.

Build by

sbt clean
sbt stage

Build to universal package

Create the plain layout app or zipped tgz/tgz package for the project.

# create plain layout application directory
sbt packageBin
# create `tgz` (tar.gz) package
sbt packageZipTarball
# create `txz` (tar.xz) package
sbt packageXzTarball

Build to native-image

Before building, you should install prerequisites binary native-image from Graal.

gu install native-image

Then, build to native-image

sbt GraalVMNativeImage/packageBin

Build to docker

sbt Docker/stage
sbt Docker/publishLocal
sbt Docker/publish

Warning: Before executing Docker/publish, you need to login to container registry outside sbt.

Similar ideas

About

Simple PubSub server based on REST API and Websocket protocol

License:Apache License 2.0


Languages

Language:Scala 76.2%Language:Python 21.3%Language:Shell 1.4%Language:Makefile 1.1%