setting some messages on socket