Commit Graph

19 Commits

Author SHA1 Message Date
Bernhard B
ce556f0a73 parse challenge tokens from received response
see #482
2024-03-22 15:52:12 +01:00
Bernhard B
bc14eccf7d added more debug logging to json-rpc mode
see #482
2024-03-21 18:11:52 +01:00
Bernhard B
0d5c23d7ea fixed json-rpc debug log outputs
* moved them up a bit to also log something in case of an error

see #482
2024-03-20 20:52:25 +01:00
Bernhard B
3573f6ae95 added json-rpc debug logging
see #482
2024-03-20 19:47:37 +01:00
Bernhard B
91d7dc0a19 fixed concurrent map write
* protect map access with mutex to avoid concurrent map access

see #493
2024-02-28 16:37:40 +01:00
Bernhard B
3d7b73560a fixed bug in golang channel handling (json-rpc mode)
* golang channels are meant to be 1:1 channels, so if multiple
  goroutines listen on the same channel for messages, only one will
  receive the message and the others are not, which lead to lost
  messages.

  In order to fix that, we create a dedicated golang channel for every
  websocket connection.

see #451
2023-12-11 22:18:23 +01:00
Tomek Osika
4444beaf98 link device in json-rpc mode 2023-11-11 14:34:47 +01:00
Bernhard B
a06a9f873b switched implementation to multi-account mode
* instead of starting signal-cli in json-rpc mode with the '-u',
  we start signal-cli without the '-u' parameter (also known as
  multi-account mode). This makes it possible to register a number in
  json-rpc mode.
2023-10-30 14:49:11 +01:00
Bernhard B
798f897ad1 added trust mode parameter to json-rpc mode
see #240
2022-05-08 20:23:54 +02:00
Bernhard B
25775a4c10 implemented trust mode
* implemented possibility to set the trust mode globally

see #240
2022-05-06 19:28:23 +02:00
Bernhard B
0b6bd44838 ran go-fmt on complete sourcecode 2022-04-01 19:08:07 +02:00
Bernhard B
284e92107c fixed bug in json-rpc mode
* properly close websocket connection when client disconnects

see #198
2022-01-16 22:00:12 +01:00
Bernhard B
ed8916ce0e do not spam log file in case JsonRpc2 client can't read data
* only log an error message at max every 5 minutes

see #186
2021-12-05 17:48:44 +01:00
Bernhard B
094e42059d improved error handling in jsonrpc2 client 2021-10-10 18:42:39 +02:00
Bernhard B
c1e514b29c improved log output 2021-09-29 09:57:04 +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
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