Define functions required by websocket interface to expose an object compatible with libraries like stomp.js