added constructor args for Socket to match flash API