# noPoll

A wrapper for noPoll, see http://www.aspl.es/nopoll - as usual, this is really just a quick lookup of the parameter types and positions and meanings of the phix wrapper, and limited to those routines that I have actually made use of.
Abandoned: I started this when I couldn’t get libcurl to work, and abandoned it once I got that working - no slur intended: work stopped because I don’t need this anymore, not because I found anything wrong with it. Let me know if you start using it.
None of these routines are supported by pwa/p2js - so I guess that pretty much matches desktop/Phix then!

### Example:

Copy

    include nopoll.e

    atom ctx = nopoll_ctx_new()
    atom conn = nopoll_conn_new(ctx, "echo.websocket.org", "80", NULL, "/", NULL, NULL)
    if not nopoll_conn_is_ok(conn) then
        -- some error handling here
    end if
    if not nopoll_conn_wait_until_connection_ready(conn, 5) then
        -- some error handling
    end if

    if nopoll_conn_send_text(conn, "Hello there! this is a test", 27) != 27 then
        -- yet more error handling
    end if

    ...