Could be seen here ->
Code:
http://www.rubydoc.info/github/rapid7/metasploit-framework/Msf
for codes like:
on_client_connect
on_client_close
on_client_data and many more

Please add in more good sources if you are aware of.


Cheers!
b0nd