Skip to content

how to use the websocket sink? #2897

Answered by Maingol
Maingol asked this question in Q&A
Jun 4, 2024 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

@Yisaer
Then I removed the log node and checked the rule's action again, and it worked correctly. The final request parameters were similar to this:

"action": [
{
"websocket": {"path": "eva", "format": "json"}
}
]
Because this method uses SQL statement-type rules, I had to set up an in-memory output in my flow diagram. In the end, it worked, but this method required me to build additional SQL rules and an in-memory output component. I kept trying to directly pass data to the WebSocket component in the flow diagram. I used a workaround: first, I filled in both the WebSocket server address and path, then I used the API to get the details of this flow rule. After that, I removed the WebSocke…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Maingol
Comment options

@Maingol
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Maingol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants