correctly build options for onMessage and onPrincipal
only multiplex sockets on a per principal basis.