spiffy-websockets/test/hello.scm

12 lines
299 B
Scheme
Raw Normal View History

2020-12-29 12:56:44 +00:00
(import scheme (chicken base) spiffy (spiffy websockets))
2014-10-18 16:58:16 +00:00
(handle-not-found
(lambda (path)
(when (string= path "/web-socket")
(with-websocket
(lambda ()
(send-message (string-append "you said: " (receive-message))))))))
(root-path ".")
(start-server port: 8080)