Skip to content

Instantly share code, notes, and snippets.

View peejaybee's full-sized avatar

Phillip Birmingham peejaybee

View GitHub Profile

Keybase proof

I hereby claim:

  • I am peejaybee on github.
  • I am peejaybee (https://keybase.io/peejaybee) on keybase.
  • I have a public key whose fingerprint is F77D 8F35 E15A D185 1D5A 784B A64B 60DE 4371 6DEE

To claim this, I am signing this object:

WebSockets - An Introduction

WebSockets is a modern HTML5 standard which makes communication between client and server a lot more simpler than ever. We are all familiar with the technology of sockets. Sockets have been fundamental to network communication for a long time but usually the communication over the browser has been restricted. The general restrictions

  • The server used to have a permanent listener while the client (aka browser) was not designated any fixed listener for a more long term connection. Hence, every communication was restricted to the client demanding and the server responding.
  • This meant that unless the client requested for a particular resource, the server was unable to push such a resource to the client.
  • This was detrimental since the client is then forced to check with the server at regular intervals. This meant a lot of libraries focused on optimizing asynchronous calls and identifying the response of asynchronous calls. Notably t
@peejaybee
peejaybee / gist:4712214
Created February 5, 2013 04:38
Error report to work on
I have an annotated fragment with the following code (I've omitted the imports, they are :
```java
package com.pjbsoftware.PJBDemo;
import android.support.v4.app.Fragment;
import android.widget.TextView;
import com.googlecode.androidannotations.annotations.AfterInject;
import com.googlecode.androidannotations.annotations.AfterViews;