(server (bootstrap-actor
hive <websocket-server>
#:port %server-port
- #:on-ws-connection
- (lambda (ws)
- (format (current-error-port) "on-ws-connection: ws=~s\n" ws)
- (when #f
- (set! (.on-close ws)
- (lambda (ws)
- (format (current-error-port) "on-close: ~s\n" ws)))
- (set! (.on-error ws)
- (lambda (ws e)
- (format (current-error-port) "on-error: ~s, ~s\n" ws e)))
- (set! (.on-message ws)
- (lambda (ws msg)
- (format (current-error-port) "on-message: ~s\n" msg)))
- (set! (.on-open ws)
- (lambda (ws)
- (format (current-error-port) "on-open: ~s\n" ws)))))
+ #:on-ws-connection (lambda (ws)
+ (format (current-error-port) "on-ws-connection: ws=~s\n" ws))
#:on-ws-close (lambda (ws)
(format (current-error-port) "on-close: ~s\n" ws))
#:on-ws-error (lambda (ws e)