[Opa] Network to transit information of more than one type

Frederic Ye frederic.ye at mlstate.com
Tue Apr 17 11:15:37 UTC 2012


You can easily extend the message type : 

type stopNetwork = { string error, string code }

type message = {string author, string text} or stopNetwork

On Apr 17, 2012, at 1:12 PM, amulya rattan wrote:

> All,
> 
> Below statement creates a cloud network of the type of a network that transits information of type message. Is there a way to create a network that can transit different types of messages? For e.g. I want to have an additional type that I want to transmit through the network: type stopNetwork = { string error, string code }. Any suggestions?
> 
> 
> room = Network.network(message) (Network.cloud("room"))
> _______________________________________________
> Opa mailing list
> Opa at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/opa

Frederic Ye.



More information about the Opa mailing list