You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
(import chicken scheme)
|
|
(use spiffy websockets)
|
|
|
|
(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)
|