Repository navigation
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"; |
|
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: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello all,
There is an example of
web-serverrunning in a custom application via proxy with Apachehttps://github.com/AxisCommunications/acap-native-sdk-examples/blob/main/web-server/README.mdI would like to use
Websockets Serverin custom application on an Axis camera if it is possible.mod_proxy_wstunnelis 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.jsonfrom the example above or any other way?Update:
There is schema
version 1.7.2which 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
All reactions