Support websockets 0.9

Not tested.