The base library including publish websocket via url
Build application:
/bin/bash gradlew jar
output jar: ngx-blobs-wss-1.0.0.jar
📦 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
-
NgxWebsocketBaseService
: this service use to publish eventMessagesSocketPublisherRequest<?>
: model will be published event
{
"topic": "CALLBACK",
"message": {
"username": "oses01@gmail.com",
"age": 32,
"content": "this is me"
}
}