Docs - Sockets is also supported right out-of-the-box and with this you can also use all its functions,
which is available trough this will return an initialized and connected instance.

By default a basic is implemented in form of a database adapter called socketable,
this will emit events on add, edit and delete to certain rooms.

Ofcourse it is also possible to add your own events and methods, this can be done in plugins or in behaviors. An example plugin:

function SocketPlugin() {


SocketPlugin.prototype.onBeforeRegister = function(alias, path) {
    // The addListener method will add an extra listener function to the sockets.
    Socket.addListener('demo', function(message) {
        // We only log the received message but you can do everything here.
        // Even ObjectManager calls.

module.exports = SocketPlugin;