Skip to content

Commit

Permalink
updated README.md guide for create a PubNub Client.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlb committed Apr 10, 2012
1 parent fbfe512 commit 595c04f
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions README.md
Expand Up @@ -235,7 +235,7 @@ Make use of the design patterns shown here when implementing a
PubNub Client Library. However you must follow directly
the Interface shown in this Doc when utilizing
AES Encryption.
Search for `cipher\_key` to find interface guide.
Search for `cipher_key` to find interface guide.

http://pubnub.github.com/pubnub-api/crypto/index.html

Expand All @@ -247,8 +247,12 @@ and receipt.
Establishing a socket pool is simple when using
socket loop libraries such as `Ruby::EventMachine`
or `C LibEvent`.
The following Pseudocode will guide you when
create a socket connection pool:

**As an alternative, you may use an Async::HTTP Lib
which provides socket pooling functionality for you.**

The following Pseudocode will provide insight
into the requirement for socket connection pooling:

```python
def create_socket_pool():
Expand Down Expand Up @@ -306,26 +310,31 @@ However, when accessing Amazon SimpleDB using a REST request, you must provide t

Include these *required* headers with each reqeust to the
PubNub HTTP REST interface.
Exclude all other headers where possible.

```
V: Version-Number
User-Agent: NAME-OF-THE-CLIENT-INTERFACE
Accept: */*
```

IMPORTANT: **Exclude all other headers where possible.**

##### Example Headers:

```
V: 3.1
User-Agent: PHP
Accept: */*
```

##### FULL HTTP Request Example:

```
GET /time/0 HTTP/1.1
Host: pubsub.pubnub.com
V: 3.1
User-Agent: Ruby
User-Agent: Java-Android
Accept: */*
```

There are may possible `User-Agent`'s.
Expand Down

0 comments on commit 595c04f

Please sign in to comment.