com.github.agaro1121.rtm
Some Akka Streams components for use
Websockets require Flow[Message, Message]
The following pieces come together to form a sane flow
wsMessage2Json ~> json2SlackEvent ~> [Your logic to respond goes here] ~> slackEvent2Json ~> json2WsMessage
slackEvent2WsMessage is a summary of the outgoing flow (slackEvent2Json ~> json2WsMessage) and can be used in place of them
it is equipped with asynchronous boundaries for a slight performance gain (hopefully)
wsMessage2SlackEvent is a similar summary
Some Akka Streams components for use
Websockets require Flow[Message, Message]
The following pieces come together to form a sane flow
wsMessage2Json ~> json2SlackEvent ~> [Your logic to respond goes here] ~> slackEvent2Json ~> json2WsMessage
slackEvent2WsMessage is a summary of the outgoing flow (slackEvent2Json ~> json2WsMessage) and can be used in place of them
it is equipped with asynchronous boundaries for a slight performance gain (hopefully)
wsMessage2SlackEvent is a similar summary