Sumner Evans
881d73f843
checkpoints: expose ability to set retry_num
2021-12-03 17:34:40 -07:00
Tulir Asokan
46ef2b4793
Send bridge step message tracking checkpoint on websocket bridges
2021-11-25 23:14:31 +02:00
Tulir Asokan
dafd9da846
Fix formatting
2021-11-25 19:53:25 +02:00
Tulir Asokan
22b70acee8
Clear websocket response waiters on disconnect
2021-11-25 19:32:03 +02:00
Tulir Asokan
79a125e0a7
Make HasWebsocket return nil if websocket disconnects
2021-11-25 18:57:54 +02:00
Sumner Evans
12aa8dc3b1
MessageSendCheckpoint: make timestamp an int64
2021-11-18 08:58:42 -07:00
Sumner Evans
c5609c519a
GetCheckpointTypes -> CheckpointTypes, omit empty fields in message send checkpoints
2021-11-18 08:38:23 -07:00
Sumner Evans
f66653bc34
AppService.HasWebsocket: fix logic
2021-11-17 14:50:56 -07:00
Sumner Evans
427497a245
Refactor checkpoint methods
2021-11-17 14:33:25 -07:00
Sumner Evans
cbdc6ab20e
Add DECRYPTED step
2021-11-17 14:09:54 -07:00
Sumner Evans
ff483f33aa
Move message_send_checkpoint to appservice package
2021-11-17 13:43:54 -07:00
Sumner Evans
5d6692101f
Add support for sending checkpoints via websocket
2021-11-17 13:16:54 -07:00
Sumner Evans
74ed9c35d2
AppService.handleEvents: send BRIDGE checkpoint automatically
2021-11-17 10:39:31 -07:00
Sumner Evans
65d1f7d674
message send checkpoints: move to bridge and rename some constants
2021-11-16 11:49:07 -07:00
Sumner Evans
8226221b5e
Created objects for message send tracking
2021-11-16 11:49:07 -07:00
Tulir Asokan
5867f81e9f
Bump appservice websocket protocol version
...
(so that the server knows the client supports deduplicating transactions)
2021-11-16 20:44:02 +02:00
Tulir Asokan
25fd8bcfff
Add logs about incoming transactions
2021-11-16 18:35:04 +02:00
Tulir Asokan
62b2e31499
Enable transaction deduplication in websocket
2021-11-16 18:09:33 +02:00
Tulir Asokan
2586338894
Inhibit login in appservice registrations
2021-11-12 18:10:21 +02:00
Tulir Asokan
9c0196f6fa
Slightly optimize RandomString()
2021-11-07 23:51:19 +02:00
Tulir Asokan
b95f3b9850
Update todo
2021-11-06 20:52:01 +02:00
Tulir Asokan
010782c602
Don't update state store with historical events
2021-11-03 21:30:19 +02:00
Tulir Asokan
7c4f2b8610
Fix formatting
2021-10-29 19:14:57 +03:00
Tulir Asokan
edff210dd2
Update appservice websocket command handling
2021-10-29 19:06:07 +03:00
Tulir Asokan
b8efcf99cc
Add method to get full room state
2021-09-30 16:05:56 +03:00
Tulir Asokan
d868cb6ea4
Add process ID to appservice websocket headers
2021-09-30 13:51:37 +03:00
Tulir Asokan
00ca2be6a5
Run gofmt
2021-09-22 10:52:01 -04:00
Tulir Asokan
f1dc581b52
Add write deadline for appservice websocket connection
2021-09-03 16:51:41 +03:00
Tulir Asokan
5a2fad3f2b
Remember multiple recent transaction IDs for deduplication
2021-08-30 15:25:58 +03:00
Tulir Asokan
386ac2e0c6
Add liveness and readiness endpoints to appservices
2021-08-25 18:38:30 +03:00
Tulir Asokan
50398a6d4d
Handle OTK counts and device lists coming in through the transaction websocket
2021-07-24 23:58:35 +03:00
Tulir Asokan
c11b089800
Add mutex around SendWebsocket
2021-07-22 23:34:30 +03:00
Tulir Asokan
74cd673423
Fix some logs
2021-07-16 22:18:25 +03:00
Tulir Asokan
97cbadb5ac
Fix field name in appservice HTTP error response struct
2021-07-16 22:00:44 +03:00
Tulir Asokan
3ff1d9c32a
Add support for error responses in appservice websocket commands
2021-07-16 22:00:27 +03:00
Tulir Asokan
5993d62da8
Allow appservices to send commands through transaction websocket
2021-07-14 16:10:50 +03:00
Tulir Asokan
72aa96509e
Add support for MSC3202 in appservice package
2021-07-14 16:10:47 +03:00
Tulir Asokan
42d0adaa7d
Improve debug log for unsupported event types and add call events to GuessClass (ref #32 )
2021-05-07 15:11:42 +03:00
Tulir Asokan
8cb0c0ee0c
Return appservice websocket close error from StartWebsocket
2021-04-26 23:52:25 +03:00
Tulir Asokan
06fa15cc4c
Add option for automatic HTTP request retries on network error
...
The DefaultHTTPRetries option in Client and AppService sets the number
of retries that *all* HTTP requests do if they encounter a network or
gateway (502-504) error. The default is 0, which means no retries.
It can also be set per-request with FullRequest's MaxAttempts field.
That field starts at 1 instead of 0 so that the default of 0 means
using the default value from the Client.
2021-04-15 16:21:21 +03:00
Tulir Asokan
b0fac45594
Log error if makeIntent returns nil
2021-04-07 00:14:13 +03:00
Tulir Asokan
974dd86542
Use shared http.Client instance with cookie jar in appservices
2021-04-06 17:09:44 +03:00
Tulir Asokan
6002723adf
Make user agent more configurable
2021-03-22 10:21:06 +02:00
Tulir Asokan
77e23d55ac
Allow sending and receiving commands via AS websocket
2021-03-12 15:58:09 +02:00
Tulir Asokan
4e7cb8da4d
Don't try to parse UIA data from register error responses
2021-03-08 00:51:20 +02:00
Tulir Asokan
2ab811a476
Add type when registering AS users
...
Also renamed uk.half-shot.msc2778 constant to AuthTypeHalfyAppservice
2021-03-04 19:31:49 +02:00
Tulir Asokan
30dfc9842f
Add mutex to prevent clients/intents map writes. Fixes #28
2021-02-26 13:25:27 +02:00
Tulir Asokan
3033d3d53c
Add option to output logs as JSON
2021-02-23 21:15:27 +02:00
Tulir Asokan
a4df8b588e
Stringify avatar URL when setting room avatar
2021-02-09 23:17:37 +02:00
Tulir Asokan
4713321cf3
Improve logging in websocket
2021-02-03 13:33:03 +02:00