-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate new WebSocket
host
#213
Integrate new WebSocket
host
#213
Conversation
cmd/elasticindexer/config/prefs.toml
Outdated
@@ -2,12 +2,14 @@ | |||
disabled-indices = [] | |||
[config.web-socket] | |||
server-url = "localhost:22111" | |||
is-server = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it should be mode = "server"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
cmd/elasticindexer/config/prefs.toml
Outdated
# URL for the WebSocket client/server connection | ||
# This value represents the IP address and port number that the WebSocket client or server will use to establish a connection. | ||
url = "localhost:22111" | ||
# This flag will start the WebSocket connector as server or client( can be "client" or "server") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This flag describes the mode to start the WebSocket connector. Can be "client" or "server"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
} | ||
} | ||
|
||
func (i *indexer) ProcessPayload(payload *data.PayloadData) error { | ||
operationAction, ok := i.actions[payload.OperationType] | ||
func (i *indexer) ProcessPayload(payload []byte, topic string) error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
mx-chain-communication-go