implementation of websockets
[src/app-framework-binder.git] / src / afb-hsrv.c
index b5e6887..64cea9d 100644 (file)
@@ -29,6 +29,7 @@
 #include "local-def.h"
 #include "afb-method.h"
 #include "afb-hreq.h"
+#include "afb-hsrv.h"
 #include "afb-websock.h"
 #include "afb-apis.h"
 #include "afb-req-itf.h"
@@ -150,7 +151,7 @@ static int afb_hreq_websocket_switch(struct afb_hreq *hreq, void *data)
                return 0;
 
        if (!later) {
-               struct afb_websock *ws = afb_websock_create(hreq->connection);
+               struct afb_websock *ws = afb_websock_create(hreq);
                if (ws == NULL) {
                        /* TODO */
                } else {