use binary write handler for web sockets