I would be very interested into an overload broadcast(ByteBuffer) for WebSocketServer like the one for byte arrays and strings. One could use ByteBuffer.array() but it is, in fact, sematically different, because variables like position and limit are not taken in account when sending. Are there any technical difficulties preventing such an overload and would there be any opportunities of optimization compared to iterating clients and sending the buffer to each?
I would be very interested into an overload
broadcast(ByteBuffer)forWebSocketServerlike the one for byte arrays and strings. One could useByteBuffer.array()but it is, in fact, sematically different, because variables like position and limit are not taken in account when sending. Are there any technical difficulties preventing such an overload and would there be any opportunities of optimization compared to iterating clients and sending the buffer to each?