Add publisher endpoint to echo examples
This commit is contained in:
parent
e755c473d1
commit
bee8891bf6
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
(define (echoer from to)
|
(define (echoer from to)
|
||||||
(transition stateless
|
(transition stateless
|
||||||
|
(publisher (tcp-channel to from ?))
|
||||||
(subscriber (tcp-channel from to ?)
|
(subscriber (tcp-channel from to ?)
|
||||||
(on-absence (quit))
|
(on-absence (quit))
|
||||||
(on-message
|
(on-message
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
(define (echoer from to)
|
(define (echoer from to)
|
||||||
(transition/no-state
|
(transition/no-state
|
||||||
|
(publisher (tcp-channel to from ?))
|
||||||
(subscriber (tcp-channel from to ?)
|
(subscriber (tcp-channel from to ?)
|
||||||
(on-absence (quit))
|
(on-absence (quit))
|
||||||
(on-message
|
(on-message
|
||||||
|
|
Loading…
Reference in New Issue