Replies: 2 comments
-
I was able to implement Websockets server in a custom app with the following: { in the app itself let socket_path = "/tmp/websocket_app.sock"; Webserver client uri: let uri ="ws:///local/hello_world/ws"; |
Beta Was this translation helpful? Give feedback.
-
Hi, Adding for completeness that the 'target' to use in the manifest.json will depend on the backend-implementation. Above, an example is shown for an implementation that listens on unix socket. Here is another one, using uWebSockets as backend, communicating over internal network socket. An excerpt of the uWebSockets url-routing config (where DIRECT_PREFIX is /local/yourappname), to get an idea:
And the proxy-part of the manifest as follows, to provide both an http- and websocket accesspoint that gets forwarded to the uWebsockets implementation:
|
Beta Was this translation helpful? Give feedback.
-
Hello all,
There is an example of
web-server
running in a custom application via proxy with Apachehttps://github.com/AxisCommunications/acap-native-sdk-examples/blob/main/web-server/README.md
I would like to use
Websockets Server
in custom application on an Axis camera if it is possible.mod_proxy_wstunnel
is available on the devicefind / -name "mod_proxy_wstunnel.so" 2>/dev/null
/usr/lib/apache2/modules/mod_proxy_wstunnel.so
Any hints how to setup
manifest.json
from the example above or any other way?Update:
There is schema
version 1.7.2
which mentioned Websockets underhttps://developer.axis.com/acap/develop/manifest-schemas/schema-field-descriptions-v1.7.3/
But I could not find any more detailed examples for Websockets on Axis camera
Update2:
I was able to implement Websockets server in a custom app with the following:
manifest json
in the app itself
Webserver client uri:
Thank you
Beta Was this translation helpful? Give feedback.
All reactions