It wouldn't be too much trouble to expose a ws_conn_sendfile function that takes a file descriptor, size, and an opcode, write the header then call sendfile on the provided fd. can be useful for sending static data and we don't have to waste event loop time copying in userspace.
sendfile (2)
It wouldn't be too much trouble to expose a
ws_conn_sendfilefunction that takes a file descriptor, size, and an opcode, write the header then call sendfile on the provided fd. can be useful for sending static data and we don't have to waste event loop time copying in userspace.sendfile (2)