fix typo
[src/app-framework-binder.git] / src / afb-ws.c
index cc852b2..b157a49 100644 (file)
@@ -407,7 +407,7 @@ static int aws_read(struct afb_ws *ws, size_t size)
                                        return 0;
                                pfd.fd = ws->fd;
                                pfd.events = POLLIN;
-                               poll(&pfd, 1, 10);
+                               poll(&pfd, 1, 10); /* TODO: make fully asynchronous websockets */
                        } else {
                                ws->buffer.size += (size_t)sz;
                                size -= (size_t)sz;
@@ -498,7 +498,7 @@ static void aws_on_binary(struct afb_ws *ws, int last, size_t size)
 }
 
 /*
- * Callback when 'close' command received from 'ws' with 'code' and 'size'.
+ * Callback when 'continue' command received from 'ws' with 'code' and 'size'.
  */
 static void aws_on_continue(struct afb_ws *ws, int last, size_t size)
 {