Skip to content

Commit c6b539d

Browse files
committed
Minor - Fixed typo in cURL example
1 parent 5f24073 commit c6b539d

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ Once the server is running:
7878
curl -X POST 'http://localhost:3000/send/my-socket-name?api_key=YOUR_API_KEY' \
7979
-H 'Content-Type: application/json' \
8080
-d '{
81-
"message": "Hello world!",
81+
"content": "Hello world!",
8282
"color": "info"
8383
}'
8484
```

public/assets/js/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const socket = io.connect( url, { reconnection: true } ); // Set reconnection to
88
var socket_name = 'my-socket-name';
99
var status = $( '#status' ), submit_button = $( 'button.submit' ), simple_notification = $( '#simple_notification' ), simple_notification_color = $( '#simple_notification_color' );
1010
var notify = $.noist( { position: 'bottom left' } );
11+
notify.options.duration = 1500;
1112

1213
// Set connection state
1314
socket.on( 'connect', function() {

public/src/js/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const socket = io.connect( url, { reconnection: true } ); // Set reconnection to
88
var socket_name = 'my-socket-name';
99
var status = $( '#status' ), submit_button = $( 'button.submit' ), simple_notification = $( '#simple_notification' ), simple_notification_color = $( '#simple_notification_color' );
1010
var notify = $.noist( { position: 'bottom left' } );
11+
notify.options.duration = 1500;
1112

1213
// Set connection state
1314
socket.on( 'connect', function() {

0 commit comments

Comments
 (0)