dariocravero / padrino-websockets

Agnostic websockets support for Padrino
MIT License
14 stars 9 forks source link

Error occurred "`on_shutdown': wrong number of arguments" #12

Open tana6 opened 5 years ago

tana6 commented 5 years ago

Hello.

This issue has the same meaning as Issues #7. It was displayed when the websocket's connection was disconnected.

`on_shutdown': wrong number of arguments (given 1, expected 0) (ArgumentError)

The current EventManager is as follows.

        def on_shutdown(event)
          @pinger.cancel if @pinger
          super
        end

I think that it is as follows.

        def on_shutdown(event)
          @pinger.cancel if @pinger
          super()
        end

By the way, I am using ruby 2.5.1.