Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo and removed some trailing whitespace. #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ These methods and events makes it straightforward to send bidirectional JSON mes

## Installation

You can install `JsonSocket` using Node Package Manager (npm):
You can install `JsonSocket` using Node Package Manager (npm):

```
npm install json-socket
Expand Down Expand Up @@ -210,7 +210,7 @@ Besides that the following methods and events are also available on `JsonSocket`

### JsonSocket.sendSingleMessage(port, host, message, callback)

Sends a single message anc close the connection instantly.
Sends a single message and close the connection instantly.

__Arguments__

Expand Down Expand Up @@ -249,7 +249,7 @@ __Arguments__

### socket.sendEndMessage(message, callback)

Same as `socket.sendMessage`, except that the socket is closed right after the message has been sent using
Same as `socket.sendMessage`, except that the socket is closed right after the message has been sent using
[`net.end()`](http://nodejs.org/api/net.html#net_socket_end_data_encoding).

No more messages can be sent from either the server or client through this socket.
Expand All @@ -258,7 +258,7 @@ No more messages can be sent from either the server or client through this socke

### socket.sendError(err, callback)

Convenience method for sending an error as a message.
Convenience method for sending an error as a message.

__Arguments__

Expand All @@ -284,7 +284,7 @@ Will send a message of this JSON format:

### socket.sendEndError(err, callback)

Same as `socket.sendError`, except that the socket is closed right after the message has been sent using
Same as `socket.sendError`, except that the socket is closed right after the message has been sent using
[`net.end()`](http://nodejs.org/api/net.html#net_socket_end_data_encoding).

No more messages can be sent from either the server or client through this socket.
Expand Down