sivaosorg / unused-ngx-blobs-wss

Config middleware base websocket and socket

Home Page:https://github.com/sivaosorg/ngx-blobs-wss

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Eagle logo
Config middleware base websocket and socket

The base library including publish websocket via url

⚡️ Quick start

Build application:

/bin/bash gradlew jar

output jar: ngx-blobs-wss-1.0.0.jar

🚀 Functions

Tunnel properties

📦 add file application-tunnels.yml

spring:
  tunnel-socket-starter:
    enabled: true # enable websocket
    tunnels:
      - enabled: true # enable this url will be published
        endpoint-short-url: /publish/event # url websocket
        endpoint-description: tunning on socket v1
        hashtag: '#pbx'
        pool-threshold: 10
      - enabled: true
        endpoint-short-url: /publish/action
        endpoint-description: tunning on socket v2
        hashtag: '#topic-sample'
        pool-threshold: 5
    config:
      enabled: false
      allow-display-skipped-log: false # enable logging for messages
    message:
      fields-ignored:
        - logs
        - privileges

Services

  • NgxWebsocketBaseService: this service use to publish event

    • MessagesSocketPublisherRequest<?>: model will be published event
  {
    "topic": "CALLBACK",
    "message": {
        "username": "oses01@gmail.com",
        "age": 32,
        "content": "this is me"
    }
  }

About

Config middleware base websocket and socket

https://github.com/sivaosorg/ngx-blobs-wss


Languages

Language:Java 99.7%Language:Batchfile 0.2%Language:Shell 0.1%