Skip to content

websockets? #68

Description

@dragoncoder047

I found an Arduino websockets library that works with the existing wifi library: https://github.com/gilmaimon/ArduinoWebsockets

It seems simple enough to implement similar websocket functions as the existing wifi functions in uLisp, as the interface is so similar.

As an implementation note, it does look like server.available() doesn't get you a client, it instead returns if the websocket server is running. server.accept() actually gets the client, but will block if there is no client, server.poll() returns true if there is a waiting client.

As for the client end, because the design of websockets is to push data without being requested, not respond to a request as regular HTTP is, actually getting data from the websocket using the callback will probably involve some sort of queue to pipe the data from the client callback to the gfun_t of the websocket-stream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions