Skip to content

Commit

Permalink
refactor: Remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermelimak committed Mar 8, 2017
1 parent d57beed commit c705fcf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion examples/clientExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ const Client = require('../dist').Client

const client = new Client()

client.on('teste', aa => console.log(aa))
client.emitEvent('event', { name: 'test' })

client.connect()
1 change: 0 additions & 1 deletion src/shared/parseMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const getEventHandler = (e, handlers) => handlers.find(i => i.type === e.type).h
*/
export default function (strMessage, handlersList, context) {
const eventObj = new Event({ strMessage }).toObject()
console.log(eventObj.type)
const handler = getEventHandler(eventObj, handlersList)

if (handler) handler(eventObj.payload, context)
Expand Down

0 comments on commit c705fcf

Please sign in to comment.