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