include verb and path on outgoing websocket message

pull/1227/head
Audric Ackermann 5 years ago
parent d5cfcf9edc
commit f8aa50546b
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -76,13 +76,14 @@ function wrapEnvelope(envelope: SignalService.Envelope): Uint8Array {
const request = SignalService.WebSocketRequestMessage.create({
id: 0,
body: SignalService.Envelope.encode(envelope).finish(),
verb: 'PUT',
path: '/api/v1/message',
});
const websocket = SignalService.WebSocketMessage.create({
type: SignalService.WebSocketMessage.Type.REQUEST,
request,
});
return SignalService.WebSocketMessage.encode(websocket).finish();
}

Loading…
Cancel
Save