sb.greioDisconnect(channel, [isReceiveChannel])

This function forces any cached Storyboard IO channel connections to the specified channel to be closed. Subsequent calls using the same channel name will re-establish the connection to the channel if required.

    channel                The channel that is to be disconnected.
    isReceivingChannel     An optional boolean parameter. True if closing a receiving channel.
                           False or no argument if closing a sending channel.

//Send an event to a custom channel
sb.sendEvent("StoryboardRocks", "my_channel");
//Close the cached connection to that channel
Was this article helpful?
0 out of 0 found this helpful