You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There can be some ambiguity can appear in some minor cases when mixing messages and channels, so we put the request function as Request<MsgName>On<ChannelName>ChannelWith<MsgName>On<ChannelName>Channel.
Problem
Really long names. Example: RequestServiceInfoResponseOnServiceInfoResponseChannelWithServiceInfoRequestOnServiceInfoRequestChannel
Not reflecting the operations
Proposition
Change function names
Send: Send[To (User)/ As (App)]<OperationName>Operation[With<MessageName>]
Current situation
Some function names can be really long because :
Request<MsgName>On<ChannelName>ChannelWith<MsgName>On<ChannelName>Channel
.Problem
RequestServiceInfoResponseOnServiceInfoResponseChannelWithServiceInfoRequestOnServiceInfoRequestChannel
Proposition
Change function names
Send[To (User)/ As (App)]<OperationName>Operation[With<MessageName>]
SubscribeTo<OperationName>Operation[With<MessageName>]
<OperationName>Operation[With<MessageName>]Received
RequestTo<OperationName>Operation[With<ReplyMessageName>][With<RequestMessageName>]
ReplyTo<OperationName>Operation[With<RequestMessageName>][WithReply<MessageName>]
Note:
[With<MessageName>]
and others should be implemented with issue 140 for multiple messagesExamples:
receiveHello
with sidereceive
:SendToReceiveHelloOperation
SubscribeToReceiveHelloOperation
ReceiveHelloOperationReceived
sendHello
with sidesend
:SendAsSendHelloOperation
SubscribeToSendHelloOperation
SendHelloOperationReceived
pingRequest
with sidereceive
:SendToPingRequestOperation
SubscribeToPingRequestOperation
PingRequestOperationReceived
RequestPingRequestOperation
ReplyToPingRequestOperation
onUserSignedUp
with sidesend
:SendAsOnUserSignedUpOperation
SubscribeToOnUserSignedUpOperation
OnUserSignedUpOperationReceived
Note: Could be prefixed with With if there is multiple messages
The text was updated successfully, but these errors were encountered: