Added ability to communicate to server using the 'server' event