Skip to content

Commit

Permalink
feat: support node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed May 31, 2022
1 parent 9f9a1a4 commit 4fd4102
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Expand Up @@ -23,7 +23,7 @@ jobs:
matrix:
# Include all major maintenance + active LTS + current Node.js versions.
# https://github.com/nodejs/Release#release-schedule
node: [14, 16]
node: [14, 16, 18]
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion src/node/NodeWebSocketTransport.ts
Expand Up @@ -20,7 +20,7 @@ import { packageVersion } from '../generated/version.js';
export class NodeWebSocketTransport implements ConnectionTransport {
static create(url: string): Promise<NodeWebSocketTransport> {
return new Promise((resolve, reject) => {
const ws = new NodeWebSocket(url, [], {
const ws = new NodeWebSocket(url.replace('localhost', '127.0.0.1'), [], {
followRedirects: true,
perMessageDeflate: false,
maxPayload: 256 * 1024 * 1024, // 256Mb
Expand Down

0 comments on commit 4fd4102

Please sign in to comment.