JSValue jsWebSocketBufferedAmount(ExecState* exec, const Identifier&, const PropertySlot& slot) { JSWebSocket* castedThis = static_cast<JSWebSocket*>(asObject(slot.slotBase())); UNUSED_PARAM(exec); WebSocket* imp = static_cast<WebSocket*>(castedThis->impl()); return jsNumber(exec, imp->bufferedAmount()); }
JSValue jsWebSocketBufferedAmount(ExecState* exec, JSValue slotBase, const Identifier&) { JSWebSocket* castedThis = static_cast<JSWebSocket*>(asObject(slotBase)); UNUSED_PARAM(exec); WebSocket* imp = static_cast<WebSocket*>(castedThis->impl()); JSValue result = jsNumber(imp->bufferedAmount()); return result; }