Skip to content

Commit 727b6c4

Browse files
authored
docs: Update creating a connection using rest transport example (#268)
1 parent d5787ce commit 727b6c4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/Connection.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,9 @@ Creating a ``Connection`` using the ``REST`` tranport.
125125
const connection = new Connection({
126126
transport: 'rest',
127127
transportOptions: {
128-
host: 'myhost',
129128
database: '*LOCAL',
130129
username: 'myuser',
131130
password: 'mypass'
132-
port: 80,
133-
path:'/cgi-bin/xmlcgi.pgm',
131+
url: 'http://myhost.example.com/cgi-bin/xmlcgi.pgm',
134132
}
135133
});

0 commit comments

Comments
 (0)