标签: ruby-on-rails pubnub
我在pubnub中使用data和uuid设置了setstate,但是当我的网络端请求来自移动端然后收到错误
Pubnub :: Event:调用回调#<NoMethodError: undefined method '[]' for nil:NilClass> 时出错
Pubnub :: Event:调用回调#<NoMethodError: undefined method '[]' for nil:NilClass>
#<NoMethodError: undefined method '[]' for nil:NilClass>
$pubnub.set_state(channel: channel, state: state, uuid: uuid) do |envelope| puts envelope.status end