So the idea is to be able to capture messages on the session process. I always assumed that the proper way is to spawn a new process (gen server) and do this stuff there.
But I'm fine with the patch.
Few questions:
do we need to update README?
is it compatible with the current code? (ie: what happens if user doesn't define sockjs_info?)
It should work the same as existing code when sockjs_info isn't defined (i.e. crash). Plus since sockjs_info is specified in the behaviour code that doesn't implement it will emit a warning.
So the idea is to be able to capture messages on the session process. I always assumed that the proper way is to spawn a new process (gen server) and do this stuff there.
But I'm fine with the patch.
Few questions:
sockjs_info
?)