Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusLongmuir committed Apr 9, 2018
1 parent 1974458 commit fce5c0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ts/src/transports/websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function websocketRequest(options: TransportOptions): Transport {
}
},
start: (metadata: Metadata) => {
ws = new WebSocket(webSocketAddress, ['grpc-websockets']);
ws = new WebSocket(webSocketAddress, ["grpc-websockets"]);
ws.binaryType = "arraybuffer";
ws.onopen = function () {
options.debug && debug("websocketRequest.onopen");
Expand Down Expand Up @@ -98,9 +98,9 @@ function constructWebSocketAddress(url: string) {
}

function headersToBytes(headers: Metadata): Uint8Array {
let asString = '';
let asString = "";
headers.forEach((key, values) => {
asString += `${key}: ${values.join(', ')}\r\n`;
asString += `${key}: ${values.join(", ")}\r\n`;
});
return encodeASCII(asString);
}

0 comments on commit fce5c0f

Please sign in to comment.