Skip to content

Websocket data sending example #203

Answered by pataxis
torcsvarizs-ar asked this question in Q&A
Discussion options

You must be logged in to vote

are there examples for sending data from the camera to a webpage on registered websocket channel?

None that I know of.

Are we allowed to upgrade from http request to websocket from a request handler based on ax_http api?

As far as I understand the library, it's mostly redirecting requests over HTTP, or as the library says itself
The AXHttp library provides a simple mechanism for serving CGI requests.

I'm not sure if it would be technically possible to serve over WebSockets, nor if it's recommended.

In acap-native-sdk-examples, there is an example called web-server that has replaced AxHTTP. I'm not sure if that can handle more of what you want to do. I think it should be possible to us…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@torcsvarizs-ar
Comment options

@pataxis
Comment options

Answer selected by pataxis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants