I am idiotic - placed code inside socket emitter