create publish function

add searching for first publisher socket
add copy buffer to all other sockets
todo marshalling