Emit can take more arguments

We are using a socket server which can take multiple arguments. It may not be the prettiest rewrite, but we might not be the only ones needing this functionality. So I thought I'd share

Fritz