From d5ff9b1403c27518dbaff0fb8422657bf460caf8 Mon Sep 17 00:00:00 2001 From: Donovan Date: Sat, 31 Dec 2016 00:02:25 -0700 Subject: [PATCH] Update README.md few grammar fixes --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1f471ea..3d926bc 100755 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ npm install vue-socket.io --save ``` ## Usage -#### Configration -Automaticly socket connect from url string +#### Configuration +Automatic socket connection from an URL string ``` js Vue.use(VueSocketio, 'http://socketserver.com:1923'); ``` @@ -40,7 +40,7 @@ var vm = new Vue({ console.log('socket connected') }, customEmit: function(val){ - console.log('this method fired by socket server. eg: io.emit("customEmit", data)') + console.log('this method was fired by the socket server. eg: io.emit("customEmit", data)') } }, methods: { @@ -52,14 +52,14 @@ var vm = new Vue({ }) ``` -#### Dynamic socket event listenlers -Create new listenler +#### Dynamic socket event listeners +Create a new listener ``` js this.$options.sockets.event_name = (data) => { console.log(data) } ``` -Remove exist listenler +Remove existing listener ``` js delete this.$options.sockets.event_name; ```