when you establish a connection to a socket with sockopen, do you have to have the sockwrite command inside of an on *:sockopen event, or can you just do:

sockopen name port
sockwrite name data

without having to put the sockwrite inside of an on *:sockopen

?

thanks!