Commit Graph

306 Commits

Author SHA1 Message Date
Bernhard B
f34f7f2961 fixed syntax error in docker-compose.yml 2021-10-18 18:27:43 +02:00
Bernhard B
7b6c788a4a updated docker-compose.yml and added json-rpc mode 2021-10-18 18:13:29 +02:00
Bernhard B
81f07fecb8 updated README.md with json-rpc documentation 2021-10-18 18:11:00 +02:00
Bernhard B
795b4c3f99 Do not set any deadlines in websocket connection
* The websocket rfc doesn't specify what to do when a client doesn't
  respond to a ping message. It just states that it must respond with a
  pong message. But it is unclear what should happen when the client
  doesn't respond with a pong message. So instead of closing the
  connection, we are keeping the connection open as long as possible.
2021-10-10 22:37:16 +02:00
Bernhard B
094e42059d improved error handling in jsonrpc2 client 2021-10-10 18:42:39 +02:00
Bernhard B
0023ebaf83 fixed bug in jsonrpc2-helper script
* only look for registered numbers in the signal-cli-config/data folder
  and do NOT traverse the whole signal-cli-config folder (as there might
  be other files starting with '+...'
2021-10-10 18:39:03 +02:00
Bernhard B
9fad77c922 added IsPhoneNumber helper function to utils 2021-10-10 18:03:27 +02:00
Bernhard B
82fd577d48 remove any existing named pipe before creating a new one 2021-10-10 17:57:36 +02:00
Bernhard B
d7825a4da8 only add numbers to jsonrpc2.yml config file; skip any other files
starting with a '+'
2021-10-10 17:54:08 +02:00
Bernhard B
0baa20f750 added websocket ping/pong mechanism (as described in rfc6455) 2021-10-06 21:40:37 +02:00
Bernhard B
c1e514b29c improved log output 2021-09-29 09:57:04 +02:00
Bernhard B
fdff7bac99 use eclipse-temurin instead of adoptopenjdk as base image for the docker image
* adoptopenjdk is not maintained anymore and superseded by eclipse-temurin
2021-09-28 19:32:32 +02:00
Bernhard B
444e7d7608 replaced info log with debug log 2021-09-14 18:21:06 +02:00
Bernhard B
760883bdca implemented receive endpoint via websocket connection 2021-09-13 22:09:33 +02:00
Bernhard B
d8a5ddfc98 implemented more JSON-RPC endpoints 2021-09-13 19:57:51 +02:00
Bernhard B
41b11d64c1 temporarily switched back to adoptopenjdk:11-jre-hotspot-bionic image
* the eclipse-temurin images currently do not support armv7
2021-09-12 19:09:15 +02:00
Bernhard B
53f351d37e updated graalvm to 21.2.0 2021-09-12 19:08:28 +02:00
Bernhard B
6a38b9415e updated signal-cli to version 0.9.0 2021-09-12 18:13:07 +02:00
Bernhard B
f894364665 added support for sending messages via JSON-RPC 2021-09-12 18:11:45 +02:00
Bernhard B
b20fb09653 fixed syntax error in bash script 2021-09-12 18:10:04 +02:00
Bernhard B
0755b96535 updated build & release container
* updated build container to debian bullseye
* updated release container to eclipse-temurin:11-jre-focal
  (the adoptopenjdk docker image is not longer maintained)
2021-09-12 18:08:18 +02:00
Bernhard B
a3843b9f12 added another sanity check 2021-09-11 23:11:11 +02:00
Bernhard B
fd5388506b checkout specific signal-cli version in Dockerfile
* accidentally removed in previous commit
2021-09-11 23:05:36 +02:00
Bernhard B
2a0347eea2 added more sanity checks + restructured code a bit 2021-09-11 23:03:01 +02:00
Bernhard B
79fa00fdf1 cleaned up Dockerfile 2021-09-11 22:33:56 +02:00
Bernhard B
2debc8554b updated Dockerfile to support JSON-RPC 2021-09-11 22:33:31 +02:00
Bernhard B
310d07536e formatted code with gofmt 2021-09-11 22:32:31 +02:00
Bernhard B
8617aacba5 added jsonrpc2-helper script 2021-09-11 22:31:43 +02:00
Bernhard B
27b7f28c42 formatted code with gofmt 2021-09-11 22:30:56 +02:00
Bernhard B
ae857c7a69 started working on JSON-RPC integration
* still WIP
2021-09-11 22:28:55 +02:00
Bernhard B
eb312c97c3 added precompiled libraries for libsignal-client v0.9.0 2021-09-11 22:24:58 +02:00
Bernhard B
9c0a73cb52 copy src/client folder to docker container 2021-09-05 19:36:18 +02:00
Bernhard B
314f9c47e2 fixed swaggo annotations 2021-09-05 18:59:37 +02:00
Bernhard B
84eb4393fe added precompiled libraries for libsignal-client v0.8.4 2021-09-05 18:30:42 +02:00
Bernhard B
1295fd7452 move signal-cli specific code into own library
* still WIP and APIs might change lateron, but at least it compiles.

see #150
2021-09-05 18:25:12 +02:00
Bernhard B
85dfe199f3 updated signal-cli to version 0.8.5 2021-08-10 19:52:20 +02:00
Bernhard B
719d8d6400 increased default command timeout to 120 seconds
* libsignal-client performs really bad on armv7 now, so
  increase the default command timeout to 120 seconds to make
  it somehow useable on armv7.

see #145
2021-07-29 20:55:28 +02:00
Bernhard B
2bd578759b bumped go-gin to version 1.7.0 2021-07-28 17:03:39 +02:00
Bernhard B
91e7e43de9 changed default parameters in swagger documentation for create groups
endpoint

* reordered parameters in swagger annotation in order to default the
  add members & edit group permissions to 'only-admins' & set the default
  for the group link to 'disable'.

see #148
2021-07-10 19:59:13 +02:00
Bernhard B
5dc663e80e extended create groups endpoint
* added possibility to specify the description, the add group & edit
  group permissions and the group link state.

see #148
2021-07-10 19:51:37 +02:00
Bernhard B
99b9d6163a added possibility to specify the signal-cli command timeout in the
docker-compose.yml file

see #145
2021-07-03 17:48:02 +02:00
Bernhard B
3d8133284e updated signal-cli to version 0.8.4.1 2021-06-22 19:44:45 +02:00
Bernhard B
05fdaef78e fixed syntax error in bug-report.yml 2021-06-18 18:06:45 +02:00
Bernhard B
4d577b0d54 fixed syntax error in bug-report.yml 2021-06-18 18:05:44 +02:00
Bernhard B
38bb86b5b9 fixed syntax error in bug-report.yml 2021-06-18 18:05:03 +02:00
Bernhard B
4fba476791 Update bug-report.yml 2021-06-18 18:03:33 +02:00
Bernhard B
8e78aded07 Merge branch 'master' of github.com:bbernhard/signal-cli-rest-api 2021-06-18 18:01:11 +02:00
Bernhard B
cc9bbdbffb improved bug-report.yml template 2021-06-18 18:00:05 +02:00
Bernhard B
1dcc3da1ec Update README.md 2021-06-17 20:27:26 +02:00
Bernhard B
7dbe258574 Update DEBUG.md 2021-06-17 10:14:53 +02:00