Skip to main content

create_socket

Function create_socket 

Source
pub fn create_socket(args: &[Value]) -> Value
Expand description

dgram.createSocket(type[, callback]) or dgram.createSocket(options[, callback]). type is 'udp4'/'udp6'; an options object reads its .type. A callback is registered as a one-time-per-emit 'message' listener (Node semantics).