Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sivaosorg/unused-ngx-blobs-wss
Config middleware base websocket and socket
https://github.com/sivaosorg/unused-ngx-blobs-wss
websocket websocket-application websocket-client websocket-proxy websocket-server
Last synced: 17 days ago
JSON representation
Config middleware base websocket and socket
- Host: GitHub
- URL: https://github.com/sivaosorg/unused-ngx-blobs-wss
- Owner: sivaosorg
- Created: 2022-02-16T17:08:47.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T15:27:38.000Z (about 2 years ago)
- Last Synced: 2024-11-15T08:17:48.987Z (3 months ago)
- Topics: websocket, websocket-application, websocket-client, websocket-proxy, websocket-server
- Language: Java
- Homepage: https://github.com/sivaosorg/ngx-blobs-wss
- Size: 108 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Config middleware base websocket and socket
The base library including publish websocket via url
## ⚡️ Quick start
Build application:
```bash
/bin/bash gradlew jar
```
> output jar: ngx-blobs-wss-1.0.0.jar## :rocket: Functions
#### Tunnel properties
:package: add file [`application-tunnels.yml`](src/main/resources/application-tunnels.yml)
```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
```json
{
"topic": "CALLBACK",
"message": {
"username": "[email protected]",
"age": 32,
"content": "this is me"
}
}
```