From c9a192339f76f14ab3161166e66cc16269e003d0 Mon Sep 17 00:00:00 2001 From: Jim O'Brien Date: Tue, 30 Sep 2014 17:18:53 -0700 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c339a6b..98fd6ae 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ based on [this](http://briantford.com/blog/angular-socket-io.html). 4. Add `btford.socket-io` as a module dependency to your app. -## Usage +## UsagesocketFactory({ ioSocket: }} This module exposes a `socketFactory`, which is an API for instantiating sockets that are integrated with Angular's digest cycle. @@ -125,7 +125,7 @@ angular.module('myMod', ['btford.socket-io']). ``` -### `socketFactory({ ioSocket: }}` +### `socketFactory({ ioSocket: })` This option allows you to provide the `socket` service with a `Socket.IO socket` object to be used internally. This is useful if you want to connect on a different path, or need to hold a reference to the `Socket.IO socket` object for use elsewhere.