Silence the pubnub "Missing Message" errors.

This commit is contained in:
Pagan Gazzard 2014-10-06 15:42:47 +01:00 committed by Pablo Carranza Vélez
parent 85e1777a65
commit 5cf8e2c180

View File

@ -32,6 +32,8 @@ publish = do ->
# Redefine original function
publish = (message) ->
# Stop pubnub logging loads of "Missing Message" errors, as they are quite distracting
message or= ' '
pubnub.publish({ channel, message })
# Replay queue now that we have initialised the publish function