getChannel

inline fun <T, R : Any> StreamLinkConnection.getChannel(subject: Subject, send: Flow<T>): Flow<Event<R>>(source)

Opens a bidirectional channel on subject, sending items from send and receiving updates deserialised to R. Reified convenience for getChannel taking an explicit KClass.