Skip to content

Commit

Permalink
Merge pull request #213 from dchacke/websockets-info
Browse files Browse the repository at this point in the history
Add note on how to debug websockets to Readme
  • Loading branch information
Dennis Charles Hackethal committed Apr 15, 2015
2 parents 47f6911 + 3f0b34e commit 41cc2ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,15 @@ This gem is best used for Rails apps that serve as APIs only and are not concern
## Limitations
The gem relies heavily on convention over configuration and currently only works with restful style controllers as shown above. More features will be available soon. See the list of development priorities below.

## Debugging Websockets
To debug websockets from your terminal, you can use curl. For example, to make a handshake with a socket at `/messages` (a route you need to have set up), you can do the following:

```shell
curl -i -N -H "Connection: Upgrade" -H "Upgrade: websocket" -H "Host: echo.websocket.org" -H "Origin: http://localhost:3000" http://localhost:3000/messages
```

More information [here](http://www.thenerdary.net/post/24889968081/debugging-websockets-with-curl).

## Development Priorities
The following features are to be implemented next:

Expand Down

0 comments on commit 41cc2ac

Please sign in to comment.