Skip to content

Commit 1bd19bf

Browse files
committed
Corrected basic usage example
1 parent 574a779 commit 1bd19bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ this method returns an es6 Promise with the result from the "server".
2323
```js
2424
//on the "server"
2525

26-
const udpReqRes = require('./src/udp-reqres');
26+
const udpReqRes = require('udp-reqres');
2727
const udpSocket = require('dgram').createSocket('udp4');
2828
const server = udpReqRes(udpSocket);
2929

@@ -38,7 +38,7 @@ server.on('MY_AWESOME_EVENT', (res, cb) => {
3838
```js
3939
//on the "client"
4040

41-
const udpReqRes = require('./src/udp-reqres');
41+
const udpReqRes = require('udp-reqres');
4242
const udpSocket = require('dgram').createSocket('udp4');
4343
const server = udpReqRes(udpSocket);
4444

0 commit comments

Comments
 (0)